Logger Class

The Logger class provides methods for logging messages at different levels of severity.

Class Attributes

Methods

load()

Initializes the Logger based on the configuration settings from the config.json file.

Logger.load()

log_info(message)

Logs an informational message.

Logger.log_info("This is an info message")

log_error(message)

Logs an error message.

Logger.log_error("This is an error message")

log_warning(message)

Logs a warning message.

Logger.log_warning("This is a warning message")

log_debug(message)

Logs a debug message, typically for development and troubleshooting.

Logger.log_debug("This is a debug message")

log_critical(message)

Logs a critical message, indicating a severe problem that may cause the system to fail.

Logger.log_critical("This is a critical message")