UNPKG

mcp-use

Version:

Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.

34 lines 1.33 kB
export type LogLevel = "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly"; interface LoggerOptions { level?: LogLevel; format?: "minimal" | "detailed" | "emoji"; } declare class SimpleConsoleLogger { private _level; private name; private format; constructor(name?: string, level?: LogLevel, format?: "minimal" | "detailed" | "emoji"); private shouldLog; private formatMessage; error(message: string, ...args: any[]): void; warn(message: string, ...args: any[]): void; info(message: string, ...args: any[]): void; debug(message: string, ...args: any[]): void; http(message: string, ...args: any[]): void; verbose(message: string, ...args: any[]): void; silly(message: string, ...args: any[]): void; get level(): LogLevel; set level(newLevel: LogLevel); setFormat(format: "minimal" | "detailed" | "emoji"): void; } export declare class Logger { private static instances; private static currentFormat; static get(name?: string): SimpleConsoleLogger; static configure(options?: LoggerOptions): void; static setDebug(enabled: boolean | 0 | 1 | 2): void; static setFormat(format: "minimal" | "detailed" | "emoji"): void; } export declare const logger: SimpleConsoleLogger; export {}; //# sourceMappingURL=logging.d.ts.map