Skip to content

logger

Classes Diagram

Module Dependencies

Classes

CustomLogger

Modular logger: use different names for different processes/files.
Each logger writes to its own file and to the console.

Constructor

CustomLogger(self, name: str)

Members

name
log_file
logger

Methods

get_logger(self) → logging.Logger

Functions

_get_log_level()

Convert LOG_LEVEL string to logging constant.

update_global_log_level() → None

Update the log level of all app loggers and their handlers from SETTINGS.LOG_LEVEL.

blank_line_module(log_level = 'DEBUG', how_many_lines = 1)