structlog_config.env_config#
Configure custom logger behavior based on environment variables.
Attributes#
Classes#
Level and path for one logger, taken from |
Functions#
|
Parse environment variables to extract custom logger configurations. |
Module Contents#
- class structlog_config.env_config.EnvLoggerConfig[source]#
Bases:
TypedDictLevel and path for one logger, taken from
LOG_LEVEL_*andLOG_PATH_*.
- structlog_config.env_config.get_custom_logger_config() dict[str, EnvLoggerConfig][source]#
Parse environment variables to extract custom logger configurations.
Logger names in the variable use underscores instead of dots.
LOG_LEVEL_HTTPXandLOG_PATH_HTTPXconfigure thehttpxlogger.- Returns:
Mapping of logger name to
levelandpathsettings.