LoggableMixin

class app.util.mixins.loggable.LoggableMixin[source]

Bases: object

Mixin that adds a logger to a class.

Provides a .log property for hierarchical logging, and integrates with instance naming and hierarchy if present. Used throughout pygaindalf for consistent, contextual logging.

Inheritance diagram of LoggableMixin

Inheritance Diagram for LoggableMixin

Methods

__init__(*args, **kwargs)

Initialize the mixin and set up the logger.

Attributes

log

__init__(*args, **kwargs)[source]

Initialize the mixin and set up the logger.

Parameters:
  • *args – Additional positional arguments for superclasses.

  • **kwargs – Additional keyword arguments for superclasses.

log = <Logger T(LoggableMixin) (WARNING)>