The Logger class provides methods for logging messages at different levels of severity.
_logger
: An instance of logging.Logger used to log messages.Initializes the Logger based on the configuration settings from the config.json
file.
Logger.load()
Logs an informational message.
Logger.log_info("This is an info message")
Logs an error message.
Logger.log_error("This is an error message")
Logs a warning message.
Logger.log_warning("This is a warning message")
Logs a debug message, typically for development and troubleshooting.
Logger.log_debug("This is a debug message")
Logs a critical message, indicating a severe problem that may cause the system to fail.
Logger.log_critical("This is a critical message")