Closed
Bug 972939
Opened 7 years ago
Closed 7 years ago
Add preliminary documentation for structured logging
Categories
(Testing :: Mozbase, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla30
People
(Reporter: wlach, Assigned: jgraham)
Details
Attachments
(1 file, 1 obsolete file)
22.65 KB,
patch
|
Details | Diff | Splinter Review |
As discussed in the mozbase meeting today, let's add some class-level documentation about the structured logging for mozlog, as well as some examples of how to use it. For now it can go in a seperate section, as we're still keeping the old log stuff for backwards compatibility. Existing documentation here: https://github.com/mozilla/mozbase/blob/master/docs/mozlog.rst (canonical location will be testing/mozbase/docs/mozlog.rst soon)
Assignee | ||
Comment 1•7 years ago
|
||
Documentation as part of the mozbase docs.
Attachment #8379020 -
Flags: review?(wlachance)
Reporter | ||
Comment 2•7 years ago
|
||
Comment on attachment 8379020 [details] [diff] [review] 972939.diff Review of attachment 8379020 [details] [diff] [review]: ----------------------------------------------------------------- I think this looks good. I only really have one comment on the documentation itself. (I might have more suggestions later after actually trying to use this documentation) I really think we need some kind of higher-level discussion in the docs about the relationship of "structured" logging to the existing logging, and when each should be used. If we want to deprecate the old mozlog functionality in favour of this, we should really just call that out so as to guide people in the right direction. ::: testing/mozbase/docs/mozlog_structured.rst @@ +123,5 @@ > + ``WARNING``, ``INFO``, ``DEBUG``). > + > + ``message`` > + Text of the log message. > + A few end-to-end examples of what a log message looks like might be helpful here.
Attachment #8379020 -
Flags: review?(wlachance) → review+
Assignee | ||
Comment 3•7 years ago
|
||
Same patch with updated commit message.
Attachment #8379020 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 4•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b9398216b902
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/b9398216b902
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•