configureLogger()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / configureLogger
Function: configureLogger()
Section titled “Function: configureLogger()”configureLogger(
config):PinoLogger
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:22662
Configure the global logger
Note: This creates a new logger instance. Existing child loggers will not be affected.
Parameters
Section titled “Parameters”config
Section titled “config”Logger configuration options
Returns
Section titled “Returns”Example
Section titled “Example”import { configureLogger } from '@sip-protocol/sdk'
// Enable debug loggingconfigureLogger({ level: 'debug' })
// Silent mode for testsconfigureLogger({ level: 'silent' })