Closed
Bug 916277
Opened 11 years ago
Closed 11 years ago
Mozbase should provide a library for production of common test result messages
Categories
(Testing :: Mozbase, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 956738
People
(Reporter: chmanchester, Unassigned)
References
(Blocks 1 open bug)
Details
Either as a part of mozlog, or implemented in terms of its structured output facility, or independent of this, we should have a python library for convenient logging of common structured messages. This would be an implementation of the actions specified in bug 916260, and would mirror bug 916265 in python.
Updated•11 years ago
|
Blocks: structured-logging
Comment 1•11 years ago
|
||
See https://github.com/jgraham/wptrunner/blob/master/structuredlog.py for my take on this so far.
Note that this doesn't use the logging module; I don't think the logging module makes a lot of sense for our needs. Typically we don't want the fancy things it does like automatic collection of stack-frame information, and features like log levels just don't make sense for test output. If we end up with strong use cases for the nice parts of the logging module — essentially the variety of built-in handlers — they are easy to either reimplement or write some sort of adapter for. Although the project is called "structured logging" I think it makes much more sense to think of it as "test output API", since what we are implementing is an interface between the test runners and all the systems that consume test results.
Comment 2•11 years ago
|
||
Yeah, I think bug 956738 basically already did this.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•