apptools.logger.logger module

Convenience functions for creating logging handlers etc.

class apptools.logger.logger.LogFileHandler(path, mode='a', maxBytes=1000000, backupCount=3, level=None, formatter=None, encoding=None, delay=False)[source]

Bases: RotatingFileHandler

The default log file handler.

apptools.logger.logger.add_log_queue_handler(logger, level=None, formatter=None)[source]

Adds a queueing log handler to a logger.