You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using another library that uses log4js which already overrides console.error and adds color formatting and timestamps for errors/warnings. This means all my debug output is red and prefixed with [ERROR].
Is there a way that if debug is imported first it can save an un-monkey-patched version of console.error so it can continue to do synchronous logging... or even to allow a choice of log or error in case people don't want sync logging in debug?
The text was updated successfully, but these errors were encountered:
I get that they're maybe trying to unify logging for node by patching it, but most libs leave out console.log etc anyway so they might as well just do var console = require('log4js')
I'm using another library that uses log4js which already overrides console.error and adds color formatting and timestamps for errors/warnings. This means all my
debug
output is red and prefixed with[ERROR]
.Is there a way that if
debug
is imported first it can save an un-monkey-patched version of console.error so it can continue to do synchronous logging... or even to allow a choice of log or error in case people don't want sync logging in debug?The text was updated successfully, but these errors were encountered: