/** * Logger Configuration Integration * * Creates Pino logger instances from YAML config files. */ import pino from 'pino'; /** * Options for createLoggerFromConfig */ export interface CreateLoggerFromConfigOptions { /** * Custom config file path * @default 'wonder-logger.yaml' in current directory */ configPath?: string; /** * Whether config file is required * @default true */ required?: boolean; /** * Runtime overrides for logger configuration */ overrides?: { level?: pino.LevelWithSilent; transports?: pino.StreamEntry[]; }; } /** * Creates a logger from YAML config file * * @param options - Configuration options * @returns Configured Pino logger * @throws Error if config is required but not found, or if validation fails * * @example * ```typescript * // Load from default location (wonder-logger.yaml) * const logger = createLoggerFromConfig() * * // Load from custom path * const logger = createLoggerFromConfig({ * configPath: './config/logger.yaml' * }) * * // With runtime overrides * const logger = createLoggerFromConfig({ * overrides: { level: 'debug' } * }) * ``` */ export declare function createLoggerFromConfig(options?: CreateLoggerFromConfigOptions): pino.Logger; //# sourceMappingURL=config.d.ts.map