ExitHandler

class app.util.logging.exit_handler.ExitHandler[source]

Bases: Handler

Custom logging handler to track log message counts and handle application exit status.

Inheritance diagram of ExitHandler

Inheritance Diagram for ExitHandler

Methods

__init__(manager, *args, **kwargs)

atexit()

Handle application exit, print summary, and save config if appropriate.

handle(record)

Attributes

class ExitStatusFormatter[source]

Bases: Formatter

__init__(manager: manager.LoggingManager, *args, **kwargs) None[source]
Parameters:

manager (manager.LoggingManager)

Return type:

None

atexit() None[source]

Handle application exit, print summary, and save config if appropriate.

Return type:

None

handle(record: LogRecord) bool[source]
Parameters:

record (LogRecord)

Return type:

bool