sawmill.handler.base¶
-
class
sawmill.handler.base.Handler(filterer=None, formatter=None)[source]¶ Bases:
objectHandle a
Log, outputting it in a relevant way.-
__init__(filterer=None, formatter=None)[source]¶ Initialise handler with filterer and formatter.
If specified, filterer should be an instance of
Filtererand will be used to determine whether to handle a log or not.formatter should be an instance of
Formatterand will be called to format the log record into a format suitable for output by this handler. As such a contractual relationship exists between a handler and its formatter.
-