Skip to content

configureLogging

function configureLogging(customLogger): void;

Defined in: src/logging/logger.ts:44

Configures the global logger.

Allows users to inject their own logger implementation (e.g., Pino, Winston) to control logging behavior, levels, and formatting.

ParameterTypeDescription
customLoggerLoggerThe logger implementation to use

void

import pino from 'pino'
import { configureLogging } from '@strands-agents/sdk'
const logger = pino({ level: 'debug' })
configureLogging(logger)