The implication of the current warning: WARNING: NSPR_LOG_MODULES is deprecated. Please use MOZ_LOG instead. is that the use of NSPR_LOG_MODULES can be replaced with MOZ_LOG, which it can't for modules that still use old logging backend.
Maybe something like "Note: NSPR_LOG_MODULES is intended to be used to enable NSPR and NSS logs, use MOZ_LOG for gecko logs" would be more clear.
That would work for me.
One big annoyance is that there's no way to know which logs work with which, so the only "safe" thing to do is to always set NSPR_LOG_MODULES (only). There are several that are still using PR_NewLogModule() that probably don't have to be -- GMP (probably), AudioChannel, nsUpdateDriver probably, NSS perhaps, widget/gtk (several), Clipboard, nsSound, idleService, WinWakeLock
2 months ago