LogHandler is responsible for causing some side-effect with a LogRecord.
LogHandler is responsible for causing some side-effect with a LogRecord. This usually includes formatting the record
with a Formatter and writing it to a Writer, although some more creative implementations exist to do more advanced
actions. LogHandlers are added to Logger instances via withHandler, although it's usually sufficient to use the
withHandler method that takes a Formatter and Writer instead of defining a LogHandler manually.
LogHandler is responsible for causing some side-effect with a
LogRecord
. This usually includes formatting the record with aFormatter
and writing it to aWriter
, although some more creative implementations exist to do more advanced actions. LogHandlers are added toLogger
instances viawithHandler
, although it's usually sufficient to use thewithHandler
method that takes aFormatter
andWriter
instead of defining aLogHandler
manually.