@seliseblocks/mcp-server
Version:
A Model Context Protocol (MCP) server for managing schemas in SELISE Blocks platform, built with TypeScript.
24 lines • 1.22 kB
TypeScript
import { LogLevel, LogFilePaths, ApiCallDirection, ApiCallData, ToolExecutionStatus, ToolExecutionData } from '../types';
declare class Logger {
private logsDir;
private logFile;
private errorLogFile;
constructor();
private ensureLogsDirectory;
private initializeLogFiles;
private writeToFile;
private formatLogEntry;
debugLog(level: LogLevel, message: string, data?: any): void;
logApiCall(direction: ApiCallDirection, url: string, data?: ApiCallData | null): void;
logToolExecution(toolName: string, status: ToolExecutionStatus, data?: ToolExecutionData | null): void;
getLogFilePaths(): LogFilePaths;
cleanupOldLogs(daysToKeep?: number): void;
}
declare const logger: Logger;
export declare const debugLog: (level: LogLevel, message: string, data?: any) => void;
export { logger, };
export declare const logApiCall: (direction: ApiCallDirection, url: string, data?: ApiCallData) => void;
export declare const logToolExecution: (toolName: string, status: ToolExecutionStatus, data?: ToolExecutionData) => void;
export declare const getLogFilePaths: () => LogFilePaths;
export declare const cleanupOldLogs: (days?: number) => void;
//# sourceMappingURL=logger.d.ts.map