Skip to content

Logger

Module for logging messages with rich formatting.

It also includes pretty_errors configuration for better error visualization.

Format

Bases: Enum

The format class for the logger.

Attributes

DEBUG (str): Grey
INFO (str): Grey
WARN (str): Yellow
ERROR (str): Bold red
CRITICAL (str): Bold red

Logger

Bases: object

The logger class for logging messages with rich formatting.

__new__()

Create a new instance of the logger class.

critical(message)

Log a critical message with rich formatting.


message (str): The message to log.

debug(message)

Log a debug message with rich formatting.


message (str): The message to log.

error(message)

Log an error message with rich formatting.


message (str): The message to log.

info(message)

Log an info message with rich formatting.


message (str): The message to log.

set_log_level(log_level='') staticmethod

Set the log level for the logger.

warn(message)

Log a warning message with rich formatting.


message (str): The message to log.

Bases: object

The logger class for logging messages with rich formatting.

__new__()

Create a new instance of the logger class.

critical(message)

Log a critical message with rich formatting.


message (str): The message to log.

debug(message)

Log a debug message with rich formatting.


message (str): The message to log.

error(message)

Log an error message with rich formatting.


message (str): The message to log.

info(message)

Log an info message with rich formatting.


message (str): The message to log.

set_log_level(log_level='') staticmethod

Set the log level for the logger.

warn(message)

Log a warning message with rich formatting.


message (str): The message to log.