getLogger

View as MarkdownOpen in Claude
getLogger(): InternalSDKLogger

Returns the SDK’s current logger. Useful when a host application wants to attach its own transport (e.g. a remote log sink) without replacing the entire logger via setLogger.

Returns

The active logger instance (the built-in one, unless setLogger has been called).

Examples

import { getLogger } from '@signalwire/js';
const logger = getLogger();
logger.info('app ready');