-
Notifications
You must be signed in to change notification settings - Fork 1
Confusing millisecond diffs #1
Comments
To me, this suggests that adding stuff to the namespace isn't really the right way to use the |
The main reason that we went for this approach is that lots of modules are too noisy, with no way to distinguish between different levels. When all the trace level stuff is marked, though, you can exclude everything ending in Maybe a solution could be changing the output format of |
See debug-js/debug#582 re: adding proper timestamps |
I think the purpose of the |
If we used a regular logger, then logs on the info/error/warn levels would go to stdout/stderr even when the DEBUG flag isn't set. I agree that this module is in a kinda weird middle ground between debug and a normal logger, but if we went fully one way or another then our libraries would either be too noisy (with one debug level to toggle all messages) or would be annoying to use (if you import it as a library and it starts logging straight to stdout) |
The debug modules includes millisecond diffs for each namespace. This module adds to each namespace such that
debug('thingX:debug')
anddebug('thingX:error')
will have unrelated diffs.The text was updated successfully, but these errors were encountered: