Logging Mixin Installation pip install python-logging-mixin Usage class Example(object, LoggingMixin): def __init__(self): pass def do_something(self): self.logger.info('do_something')