/** * Log Output Formatters for PromptSpeak MCP Server * * Provides different output formats for log entries: * - ConsoleFormatter: Human-readable, colored output for development * - JSONFormatter: Structured JSON output for production/log aggregation */ import { LogEntry } from './types.js'; /** * Interface for log formatters */ export interface LogFormatter { /** * Formats a log entry into a string for output */ format(entry: LogEntry): string; } /** * Human-readable console formatter with optional color support. * * Output format: * [2024-01-06T12:34:56.789Z] INFO [ModuleName] Message here { data: "value" } */ export declare class ConsoleFormatter implements LogFormatter { private colorize; constructor(colorize?: boolean); format(entry: LogEntry): string; private formatData; private formatError; } /** * JSON formatter for structured logging. * Each log entry is output as a single line of JSON. * Suitable for log aggregation systems (ELK, CloudWatch, etc.) */ export declare class JSONFormatter implements LogFormatter { private pretty; constructor(pretty?: boolean); format(entry: LogEntry): string; } /** * Factory function to create the appropriate formatter based on configuration */ export declare function createFormatter(format: 'json' | 'console', options?: { colorize?: boolean; pretty?: boolean; }): LogFormatter; //# sourceMappingURL=formatters.d.ts.map