Skip to content

configureLogger()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / 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.

SIPLoggerConfig

Logger configuration options

PinoLogger

import { configureLogger } from '@sip-protocol/sdk'
// Enable debug logging
configureLogger({ level: 'debug' })
// Silent mode for tests
configureLogger({ level: 'silent' })