/** * Structured logger for the WHOOP MCP server. * * Outputs JSON lines to stderr (stdout reserved for MCP stdio transport). * Supports log level filtering, pretty format for local dev, and * request-scoped loggers with correlation IDs. * * Zero runtime dependencies — just JSON.stringify + process.stderr. */ export type LogLevel = "debug" | "info" | "warn" | "error"; export interface LogEntry { ts: string; level: LogLevel; msg: string; requestId?: string; tool?: string; durationMs?: number; error?: string; [key: string]: unknown; } export interface LogOptions { level: LogLevel; format: "json" | "pretty"; } export interface Logger { debug(msg: string, extra?: Record): void; info(msg: string, extra?: Record): void; warn(msg: string, extra?: Record): void; error(msg: string, extra?: Record): void; } /** * Create a logger with the given options. * * @param options - Log level and format configuration */ export declare function createLogger(options: LogOptions): Logger; /** * Create a request-scoped logger that automatically includes the requestId * in every log entry. * * @param requestId - Correlation ID for the request * @param options - Log level and format configuration */ export declare function createRequestLogger(requestId: string, options: LogOptions): Logger; //# sourceMappingURL=logger.d.ts.map