gecko-dev/testing/mozbase/mozlog
Nikki S 0a5bd934c4 [mozlog] Allow passing messages down to formatters (Bug 1534341) r=jgraham
This addition allows formatters to be configured by sending a message.

For example, the show_logs attribute has been added to the GroupingFormatter
to allow switching on/off the display of all log messages at runtime.
A generic handle_message method was added to the BaseFormatter to allow
attributes to be configured, with optional arguments for those that require
it.

An additional log(data) method has been implemented on the GroupingFormatter
that checks self.show_logs, and if True, displays all messages regardless of
failure or success, with component, level and stack.

A test may be required to ensure this is behaving as expected.

Differential Revision: https://phabricator.services.mozilla.com/D23726

--HG--
extra : moz-landing-system : lando
2019-03-22 11:54:09 +00:00
..
mozlog [mozlog] Allow passing messages down to formatters (Bug 1534341) r=jgraham 2019-03-22 11:54:09 +00:00
tests mozlog: move the capture io class from web-platform/tests to mozlog (bug 1021926) r=jgraham 2019-03-12 10:21:12 +00:00
setup.cfg Bug 1471648 - [mozlog] Add support for Python 3; r=raphael 2019-02-01 13:08:09 +00:00
setup.py Bug 1524961 - Update mozlog's license to MPL 2.0. r=raphael 2019-03-19 10:59:24 +00:00