Logging

The logging module provides a flexible framework for emitting log messages from Python programs. The log message is passed to the logger object, which handles the formatting and output of the message. The logger is the entry point to the logging system.

By default, the logging module is disabled. To enable it, call the enable_logger() function. This will enable the logger and set the log level to WARNING. To change the log level, call the set_log_level() function.