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?
I always use the Node
debugmodule 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?