/** * Pluggable logging adapter interface. * * Implement this to route Long Tail's internal log output through a * structured logger (Pino, Winston, etc.). * * When no adapter is registered, Long Tail falls back to `console.*`. * * Usage: * ```typescript * import type { LTLoggerAdapter } from '@hotmeshio/long-tail'; * * class MyLoggerAdapter implements LTLoggerAdapter { * info(msg: string, context?: Record) { /* ... *​/ } * warn(msg: string, context?: Record) { /* ... *​/ } * error(msg: string, context?: Record) { /* ... *​/ } * debug(msg: string, context?: Record) { /* ... *​/ } * } * ``` */ export interface LTLoggerAdapter { info(msg: string, context?: Record): void; warn(msg: string, context?: Record): void; error(msg: string, context?: Record): void; debug(msg: string, context?: Record): void; }