Logger
set_logger_level(level)
Sets the logger's level to the specified logging level.
Syntax [source]
Parameters
level
(str): The desired logging level. Accepted values are 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'.
Raises
ValueError
: Raised if an invalid log level is provided.
Examples
set_logger_level('DEBUG') # Sets the logging level to DEBUG
set_logger_level('INFO') # Sets the logging level to INFO
log_debug(message)
Logs a debug message.
Syntax [source]
Parameters
message
(str): The message to be logged at the DEBUG level.
Examples
log_info(message)
Logs an informational message.
Syntax [source]
Parameters
message
(str): The message to be logged at the INFO level.
Examples
log_warning(message)
Logs a warning message.
Syntax [source]
Parameters
message
(str): The message to be logged at the WARNING level.
Examples
log_error(message)
Logs an error message.
Syntax [source]
Parameters
message
(str): The message to be logged at the ERROR level.
Examples
log_critical(message)
Logs a critical message.
Syntax [source]
Parameters
message
(str): The message to be logged at the CRITICAL level.