UNPKG

sequelae-mcp

Version:

Let Claude, Cursor, and other AI agents run real SQL queries on live Postgres databases. No more copy-pasting SQL, stale schema docs, or hallucinated DB adapters — just raw, real-time access. Now with MCP support!

37 lines 1.1 kB
/** * Simple logger utility for structured logging * Provides JSON and text output formats */ export declare enum LogLevel { DEBUG = "debug", INFO = "info", WARN = "warn", ERROR = "error" } export interface LogEntry { timestamp: string; level: LogLevel; message: string; data?: Record<string, unknown>; } export declare class Logger { private static instance; private jsonMode; private minLevel; private constructor(); static getInstance(): Logger; setJsonMode(enabled: boolean): void; setMinLevel(level: LogLevel): void; private shouldLog; private formatEntry; private output; debug(message: string, data?: Record<string, unknown>): void; info(message: string, data?: Record<string, unknown>): void; warn(message: string, data?: Record<string, unknown>): void; error(message: string, data?: Record<string, unknown>): void; cliOutput(message: string): void; cliError(message: string): void; cliTable(data: unknown[]): void; } export declare const logger: Logger; //# sourceMappingURL=logger.d.ts.map