Open
Bug 1301835
Opened 8 years ago
Updated 2 years ago
Add logging.modules preference
Categories
(Core :: XPCOM, defect, P3)
Tracking
()
NEW
People
(Reporter: jesup, Unassigned)
Details
We should have a logging.modules preference that mirrors MOZ_LOG/NSPR_LOG_MODULES, and also logging.file. Changing it should invoke the same parsing code as setting the env var does, including supporting 'timestamp'. There should be entries in all.js for these, and also any value in MOZ_LOG should be copied as an initial value into logging.modules (and MOZ_LOG_FILE into logging.file)
Comment 1•7 years ago
|
||
I think we already support something like this with logging.${MODULE} and logging.config.* I'm not entirely sure that copying things from MOZ_LOG into permanent prefs would be a good thing.
Priority: -- → P3
Comment 2•7 years ago
|
||
That's a good point. Copying something from an env variable into a user pref would then result in permanent logging, even after browser restart. Which is probably not desirable to most users. On the other hand turning on logging via user prefs might be a lot easier then env variables. Is the the logging.${MODULE} function documented somewhere?
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•