logging_config
Utility functions for configuring application wide logging.
setup_logging(level='INFO', log_to_stdout=True, log_file=None)
Configure root logger for the entire application.
Called once when argparse is loaded up. Other modules should just use logging.getLogger(name).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
level
|
str
|
Log level name, for example: "DEBUG", "INFO", "WARNING". |
'INFO'
|
log_to_stdout
|
bool
|
If True, log to stdout. |
True
|
log_file
|
str | None
|
If given, also log to this file. |
None
|