/** * ADRFlow Logger * * Simple, structured logging for ADRFlow. * Outputs JSON logs to stderr to avoid interfering with MCP stdio. * * @module adrflow/utils/logger */ /** * Log levels */ export declare const LogLevel: { readonly DEBUG: "debug"; readonly INFO: "info"; readonly WARN: "warn"; readonly ERROR: "error"; }; export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel]; /** * Logger configuration */ export interface LoggerConfig { /** Minimum level to log */ readonly level: LogLevel; /** Whether to output JSON or human-readable format */ readonly json: boolean; /** Component name to include in logs */ readonly component?: string; } /** * Logger class */ export declare class Logger { private readonly config; constructor(config?: Partial); /** * Creates a child logger with a component name */ child(component: string): Logger; /** * Logs a debug message */ debug(message: string, data?: Record): void; /** * Logs an info message */ info(message: string, data?: Record): void; /** * Logs a warning message */ warn(message: string, data?: Record): void; /** * Logs an error message */ error(message: string, error?: Error, data?: Record): void; /** * Internal log method */ private log; /** * Checks if a level should be logged */ private shouldLog; /** * Writes a log entry to stderr */ private write; } /** * Default logger instance */ export declare const logger: Logger; /** * Creates a logger for a specific component */ export declare function createLogger(component: string): Logger; //# sourceMappingURL=logger.d.ts.map