Closed Bug 1694530 Opened 4 years ago Closed 4 years ago

Allow to prepend a distinct header by using MOZ_LOG=prependheader

Categories

(Core :: XPCOM, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: nalexander, Assigned: nalexander)

References

Details

Attachments

(1 file)

Bug 1687549 allowed to limit the size of log files for cumulative use. This ticket tracks making it a little easier to distinguish logging sessions. I propose to prepend a simple header when initializing logging.

This is follow-up to Bug 1687549, which added the maxsize flag.
That works well, but it's hard to distinguish separate logging
sessions. This makes it a little easier.

This duplicates some functionality from Print. It would be possible
to share more of this, but there's unlikely to be similar consumers of
the functionality used in this commit. In addition, doing this in
Init allows us to avoid the concurrency issues that Print handles.

Depends on D104636

Assignee: nobody → nalexander
Status: NEW → ASSIGNED
Attachment #9205006 - Attachment description: Bug 1694530 - Allow to prepend a distinct header by using MOZ_LOG=prependheader. r?#xpcom-reviewers → Bug 1694530 - Allow to prepend a distinct header by using MOZ_LOG=prependheader. r?nika!
Pushed by nalexander@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ddb1bc50d5c4 Allow to prepend a distinct header by using MOZ_LOG=prependheader. r=xpcom-reviewers,nika
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: