watcher#

All functions and features for logging the app

src.tetue_generic.watcher.init_logging(config)[source]#

Initialization of logging to create log file and set level at beginning of the app.

Parameters:

log_level (str) – Configured log level

Return type:

None

Initialization function#

The initialization process is performed by the src.tetue_generic.watcher.init() function. This function performs the following tasks:

Procedure for the initialization process#

  1. Removes existing loggers

  2. Defines a custom log level “EXTDEBUG”

  3. Adds a method for the new log level

  4. Configures file output with rotation

  5. Configures console output with color

Log levels#

The following log levels are available:

  • TRACE

  • EXTDEBUG

  • DEBUG

  • INFO

  • SUCCESS

  • WARNING

  • ERROR

  • CRITICAL

The log level “EXTDEBUG” is used to display additional information that is not displayed with the “DEBUG” log level.