Port preference-based logging control to Log.jsm from Thunderbird's log4moz

NEW
Unassigned

Status

()

5 years ago
4 years ago

People

(Reporter: Irving, Unassigned)

Tracking

(Blocks: 2 bugs)

Firefox Tracking Flags

(Not tracked)

Details

A version of log4moz in the Thunderbird code base has preference-based controls. Shall we port this to toolkit/Log.jsm or do we need to bikeshed on the desired feature set first?
Blocks: 940037
Blocks: 944367
Needinfo requested from gps, who owns Log.jsm.
Flags: needinfo?(gps)

Comment 2

5 years ago
There are bugzilla comments somewhere (possibly bug 451283) about my opinions on this. Essentially:

1) Establish convention for defining logging settings via preferences. We can look at services.sync.log for inspiration.
2) Create a JavaScript component that reconciles preference values with Log4Moz loggers and handlers.
3) Create an XPCOM service that watches prefs branch(es) containing logging settings and have it update logging settings in real time.
Flags: needinfo?(gps)
You need to log in before you can comment on or make changes to this bug.