sawmill.compatibility¶
-
sawmill.compatibility.
redirect_standard_library_logging
()[source]¶ Redirect standard library logging to Sawmill.
Replace any existing handlers on the standard library root logger with a single
RedirectToSawmillHandler
. Other handlers should be left untouched.In addition, unset any level filter on the standard library root logger to ensure logs are passed through.
-
class
sawmill.compatibility.
RedirectToSawmillHandler
(target=<sawmill.handler.distribute.Distribute object>, *args, **kwargs)[source]¶ Bases:
logging.Handler
Redirect to Sawmill.