floris.logging_manager#
Functions
|
Sets whether the log statements are displayed in the console logging, and, if enabled, the log level to use. |
|
Sets whether the log statements are exported to a log file, and, if enabled, the log level to use. |
Classes
This class provide an easy access to the global logger. |
|
|
Clear or restore the exception on log records |
- floris.logging_manager.configure_console_log(enabled=True, level='INFO')[source]#
Sets whether the log statements are displayed in the console logging, and, if enabled, the log level to use. If not explicitly configured, console logging is ON at the INFO level.
- Args:
- enabled (bool, optional): Whether to enable console logging.
Defaults to True.
- level (str, optional): If enabled is True, sets the level that the
logging module displays. This level is the minimum and all messages at a higher level are included. Valid values are
CRITICAL
ERROR
WARNING
INFO
DEBUG
Defaults to "INFO".
- floris.logging_manager.configure_file_log(enabled=True, level='INFO')[source]#
Sets whether the log statements are exported to a log file, and, if enabled, the log level to use. If not explicitly configured, file logging is OFF.
- Args:
- enabled (bool, optional): Whether to enable file logging.
This argument defaults to True.
- level (str, optional): If enabled is True, sets the level that the
logging module displays. This level is the minimum and all messages at a higher level are included. Valid values are
CRITICAL
ERROR
WARNING
INFO
DEBUG
Defaults to "INFO".