UNPKG

elasticsearch-mcp

Version:

Secure MCP server for Elasticsearch integration with comprehensive tools and Elastic Cloud support

31 lines 940 B
export declare enum LogLevel { ERROR = 0, WARN = 1, INFO = 2, DEBUG = 3 } export interface LogEntry { timestamp: string; level: string; message: string; context: Record<string, unknown> | undefined; error: { name: string; message: string; stack?: string; } | undefined; } export declare class Logger { private level; private format; constructor(level?: 'error' | 'warn' | 'info' | 'debug', format?: 'json' | 'text'); private shouldLog; private formatMessage; private log; error(message: string, context?: Record<string, unknown>, error?: Error): void; warn(message: string, context?: Record<string, unknown>): void; info(message: string, context?: Record<string, unknown>): void; debug(message: string, context?: Record<string, unknown>): void; child(context: Record<string, unknown>): Logger; } //# sourceMappingURL=logger.d.ts.map