Open
Description
Would you consider a PR that implemented support for globally defaulting log
to something other than process.stderr
? The way I’d expect this to work is debug would default to stderr unless process[Symbol.for(‘DEBUG_LOG’)]
was set. Of course the local self.log
would always take precedence.
The motivation for this feature is to allow an application to redirect all debug output to a logger of its choice, without knowing which all dependencies utilize debug.
I’ve chosen a global Symbol to circumvent the issue of multiple versions of debug in codebase.
Happy to submit this. Thoughts?