Add logging.modules preference

NEW
Unassigned

Status

()

Core
XPCOM
P3
normal
a year ago
2 months ago

People

(Reporter: jesup, Unassigned)

Tracking

49 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
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)
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

3 months 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?
You need to log in before you can comment on or make changes to this bug.