Use debug module with stdout/stderr
Opened this issue · 1 comments
ibc commented
I always use the Node debug
module as follows:
https://github.com/versatica/mediasoup/blob/v3/lib/Logger.js
It provides a constructor to set a sub-namespce (optional) and 3 methods:
debug()
: prints to stdout.warn()
: prints to stderr and adds:WARN:
between the "app name" and the sub-namespace.error()
: prints to stderr and adds:ERROR:
between the "app name" and the sub-namespace.
Interested?
latysheff commented
Thanks, will look into it.