Skip to content

lifecyclelogging.handlers

Handlers for different logging outputs.

add_file_handlerAdd a file handler to the logger, ensuring the file name is valid.
add_console_handlerAdds a Rich console handler to the logger.

Add a file handler to the logger, ensuring the file name is valid.

Args: logger (logging.Logger): The logger to which the file handler will be added. log_file_name (str): The name of the log file.

Adds a Rich console handler to the logger.

Args: logger (logging.Logger): The logger to which the console handler will be added.