UNPKG

mcp-ai-agent-guidelines

Version:

A comprehensive Model Context Protocol server providing advanced tools, resources, and prompts for implementing AI agent best practices

40 lines 1.1 kB
/** * Structured logging utility for production code * Provides consistent, queryable log output for monitoring and debugging */ export interface LogContext { [key: string]: unknown; } export type LogLevel = "debug" | "info" | "warn" | "error"; /** * Structured logger that outputs JSON-formatted log messages * for improved monitoring and debuggability in production */ declare class Logger { /** * Log a warning message with optional context */ warn(message: string, context?: LogContext): void; /** * Log an error message with optional context */ error(message: string, context?: LogContext): void; /** * Log an info message with optional context */ info(message: string, context?: LogContext): void; /** * Log a debug message with optional context */ debug(message: string, context?: LogContext): void; /** * Internal logging method that outputs structured JSON */ private log; } /** * Singleton logger instance */ export declare const logger: Logger; export {}; //# sourceMappingURL=logger.d.ts.map