Closed Bug 956817 Opened 11 years ago Closed 2 years ago

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

Categories

(Toolkit :: General, defect)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Irving, Unassigned)

References

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: 944367
Needinfo requested from gps, who owns Log.jsm.
Flags: needinfo?(gps)
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)
No longer blocks: 848569
Severity: normal → S3

We're moving towards replacing Log.sys.mjs with console.createInstance (bug 1828156). Both have preference level handling, so I think we can mark this as wontfix.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.