Skip to main content
Glama
Logger.tsโ€ข696 B
export class Logger { private getTimestamp(): string { return new Date().toISOString(); } info(message: string, data?: any) { console.error(`[${this.getTimestamp()}] INFO: ${message}`, data ? JSON.stringify(data) : ''); } error(message: string, error?: any) { console.error(`[${this.getTimestamp()}] ERROR: ${message}`, error?.message || error); } warn(message: string, data?: any) { console.error(`[${this.getTimestamp()}] WARN: ${message}`, data ? JSON.stringify(data) : ''); } debug(message: string, data?: any) { if (process.env.DEBUG) { console.error(`[${this.getTimestamp()}] DEBUG: ${message}`, data ? JSON.stringify(data) : ''); } } }

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/williamzujkowski/strudel-mcp-server'

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