This change forces us (the developers) to always call logger.debug() with a single string argument, same for logger.warn(), and call logger.error() with one string argument or also with a second and optional Error argument.
Personally I like this since this forced me to change some existing logs and use a consistent syntax in all them.
Details
DEBUG
variable and stdout/stderr logs, an application may want to collect mediasoup generated logs and post them somewhere.setLogEventListeners()
function at mediasoup root module level.Usage example
Notes
logger.debug()
with a single string argument, same forlogger.warn()
, and calllogger.error()
with one string argument or also with a second and optionalError
argument.