class documentation

class ACMERichLogHandler(RichHandler): (source)

Constructor: ACMERichLogHandler(level)

View In Hierarchy

Custom Rich log handler to support the log formatting for the console output.

Method __init__ Initialize the ACMERichLogHandler with the given log level. This also adds custom styles for the console output.
Method emit Invoked by logging.
Class Variable __slots__ Slots for the ACMERichLogHandler
Class Variable _levels Custom log level styles for the console output.
Instance Variable _fromtimestamp Function to convert a timestamp to a datetime object. This is set depending on the setting of UTC time.
def __init__(self, level: int = logging.NOTSET): (source)

Initialize the ACMERichLogHandler with the given log level. This also adds custom styles for the console output.

def emit(self, record: LogRecord): (source)

Invoked by logging.

__slots__: tuple[str, ...] = (source)

Slots for the ACMERichLogHandler

Custom log level styles for the console output.

_fromtimestamp: Callable = (source)

Function to convert a timestamp to a datetime object. This is set depending on the setting of UTC time.