Open ibc opened 5 years ago
I always use the Node debug module as follows:
debug
https://github.com/versatica/mediasoup/blob/v3/lib/Logger.js
It provides a constructor to set a sub-namespce (optional) and 3 methods:
debug()
warn()
:WARN:
error()
:ERROR:
Interested?
Thanks, will look into it.
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?