This PR adds a new MozlogHandler class that sets sensible defaults (subclasses StreamHandler, sets the output to stdout by default) and integrates a Mozlog formatter directly into the handler.
It also renames JsonLogFormatter to MozlogFormatter, since JsonLogFormatter was too generic of a name.
This PR is intended to be fully backwards compatible, though the JsonLogFormatter is marked with a deprecation warning.
This PR adds a new
MozlogHandler
class that sets sensible defaults (subclassesStreamHandler
, sets the output tostdout
by default) and integrates a Mozlog formatter directly into the handler.It also renames
JsonLogFormatter
toMozlogFormatter
, sinceJsonLogFormatter
was too generic of a name.This PR is intended to be fully backwards compatible, though the
JsonLogFormatter
is marked with a deprecation warning.