-
Notifications
You must be signed in to change notification settings - Fork 965
Open
Labels
discussionThis issue is requesting comments and discussionThis issue is requesting comments and discussionfeatureThis proposes or provides a feature or enhancementThis proposes or provides a feature or enhancement
Milestone
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
discussionThis issue is requesting comments and discussionThis issue is requesting comments and discussionfeatureThis proposes or provides a feature or enhancementThis proposes or provides a feature or enhancement