Skip to content

configureLogger()

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / configureLogger

configureLogger(config): PinoLogger

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:22998

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' })