waft.configuration.logging_config module¶
- class waft.configuration.logging_config.LoggingConfig¶
Bases:
objectLogging config settings
- configured = False¶
- static disable_console_logging() None¶
Disable console logging.
- static extern_logger(name: str, propogate: bool = False)¶
Return a logger object with the specified name and configuration.
- Parameters:
name (str) – Logger name
propogate (bool) – True to enable logs to propogate to the root logger, False (default) to prevent that
- Returns:
configured logger object
- Return type:
Logger
- classmethod get_file_handler(log_file_name: str)¶
Returns either a basic or time-based rotating log file handler based upon the current log file mode setting.
- Parameters:
log_file_name (str) – Log filename to open
- Returns:
Basic or time-based rotating log file handler
- Return type:
FileHandler
- log_directory: Path¶
- classmethod setup_logging() None¶
Initializes logging globally, before any logging happens.