devops.config.config_logging
Module for logging configuration.
Functions
|
Parse logging configuration from a raw dictionary. |
|
Set logging levels based on the provided LoggingConfig. |
Classes
|
Dataclass to hold logging configuration values. |
- class devops.config.config_logging.LoggingConfig(global_level=LogLevel.INFO, utils_level=LogLevel.INFO, config_level=LogLevel.INFO, cpp_level=LogLevel.INFO)[source]
Bases:
objectDataclass to hold logging configuration values.
- Parameters:
- devops.config.config_logging.parse_logging_config(raw_config)[source]
Parse logging configuration from a raw dictionary.
As a side effect, this function sets the logging levels according to the parsed configuration.
- Parameters:
raw_config (dict) – The raw logging configuration dictionary.
- Returns:
LoggingConfig – The parsed LoggingConfig dataclass instance.
- Return type:
- devops.config.config_logging.set_logging_levels(config)[source]
Set logging levels based on the provided LoggingConfig.
- Parameters:
config (LoggingConfig) – The logging configuration.
- Return type:
None