Skip to main content
Glama

MCP Prompt Enhancer

by soniankur948
Logger.d.ts1.82 kB
/** * Logger utility for the MCP Prompt Enhancer * Provides different logging levels and formats for development and production */ export declare enum LogLevel { DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3, NONE = 4 } export interface LoggerConfig { level: LogLevel; isDevelopment: boolean; showTimestamp: boolean; } export declare class Logger { private static instance; private config; private constructor(); /** * Get the singleton logger instance */ static getInstance(config?: Partial<LoggerConfig>): Logger; /** * Reconfigure the logger */ configure(config: Partial<LoggerConfig>): void; /** * Get current log level as string */ getLogLevelName(): string; /** * Format a log message with optional timestamp */ private formatMessage; /** * Log a debug message */ debug(message: string, ...args: any[]): void; /** * Log an info message */ info(message: string, ...args: any[]): void; /** * Log a warning message */ warn(message: string, ...args: any[]): void; /** * Log an error message */ error(message: string, error?: Error, ...args: any[]): void; /** * Log with a custom level and prefix */ log(level: LogLevel, prefix: string, message: string, ...args: any[]): void; /** * Create a child logger with a specific component prefix */ createChildLogger(component: string): { debug: (message: string, ...args: any[]) => void; info: (message: string, ...args: any[]) => void; warn: (message: string, ...args: any[]) => void; error: (message: string, error?: Error, ...args: any[]) => void; }; } export declare const logger: Logger; export default logger;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/soniankur948/prompt-enhancer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server