_loggers
Define loggers for a logging dictConfig.
BaseLoggingConfig
dataclass
LoggerConfig
dataclass
Bases: BaseLoggingConfig
Define a logging Logger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name |
str
|
The name of the logger. |
required |
level |
str
|
The level of log messages this logger should show (NOTSET, DEBUG, INFO, WARNING, ERROR, CRITICAL). |
required |
handlers |
list[str]
|
List of handler names this logger should use. These handlers must exist in the logging dictConfig. |
required |
propagate |
bool
|
If |
False
|
Source code in src/red_logging/config_classes/loggers/_loggers.py
get_configdict()
Return a dict representation of the logger described by this class.