sawmill.handler.distribute¶
-
class
sawmill.handler.distribute.
Distribute
(handlers=None, *args, **kw)[source]¶ Bases:
sawmill.handler.base.Handler
Distribute log records to other named handlers.
Any log record handled by this handler will first be filtered and formatted by this handler before being passed to the other registered handlers.
The other handlers will still have opportunity to further filter and format the log record as required.
The registered handlers are called in no particular order.
Note
The data returned by any registered formatter on this handler will be passed directly to the registered handlers’ handle methods. Therefore, it must be a valid
Log
record.