Logging Configurator
Contains LoggingConfigurator & GunicornLogger classes
LoggingConfigurator
To create a default logger
Source code in src/alpha/utils/logging_configurator.py
Methods:
__init__
__init__(config=None, fmt=FORMAT, handlers=None, level=logging.INFO, stream='stdout', logger_name='root')
Initialize the LoggingConfigurator.
| Parameters: |
|
|---|
Source code in src/alpha/utils/logging_configurator.py
GunicornLogger
Bases: Logger
This class overrides the default gunicorn logger.
Source code in src/alpha/utils/logging_configurator.py
Methods:
setup
Set the FORMAT on the gunicorn logging handler.
| Parameters: |
|
|---|
Source code in src/alpha/utils/logging_configurator.py
Functions:
logging_level_checker
A simple function to check if a logging level is active.
| Parameters: |
|
|---|
| Returns: |
|
|---|