singularity-energy / open-grid-emissions

Tools for producing high-quality hourly generation and emissions data for U.S. electric grids
MIT License
67 stars 4 forks source link

Change logging configuration set at package initialization #340

Closed rouille closed 4 months ago

rouille commented 4 months ago

Purpose

Change OGE logger configuration set at package initialization. The default was to print logs to the console, and to a file. Now it only prints to the console. Users can overwrite this configuration in their own project if it is desired.

What the code is doing

Set the logfile argument to None when calling configure_root_logger in __init__.py file.

Testing

It has been tested in an external project importing oge.

Where to look

In the __init__.py file.

Usage Example/Visuals

N/A

Review estimate

2min

Future work

N/A

Checklist