Skip to main content
Glama
Gowtham-3004

MCP Kynhood Events Server

by Gowtham-3004
logger.ts1.14 kB
/** * Simple structured logger utility */ const DEBUG = process.env.DEBUG === 'true'; export const logger = { info: (message: string, data?: any) => { const timestamp = new Date().toISOString(); console.error(`[INFO] ${timestamp} - ${message}`, data ? JSON.stringify(data, null, 2) : ''); }, error: (message: string, error?: any) => { const timestamp = new Date().toISOString(); console.error(`[ERROR] ${timestamp} - ${message}`); if (error) { if (error instanceof Error) { console.error(` Error: ${error.message}`); console.error(` Stack: ${error.stack}`); } else { console.error(` Details: ${JSON.stringify(error, null, 2)}`); } } }, debug: (message: string, data?: any) => { if (DEBUG) { const timestamp = new Date().toISOString(); console.error(`[DEBUG] ${timestamp} - ${message}`, data ? JSON.stringify(data, null, 2) : ''); } }, warn: (message: string, data?: any) => { const timestamp = new Date().toISOString(); console.error(`[WARN] ${timestamp} - ${message}`, data ? JSON.stringify(data, null, 2) : ''); } };

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/Gowtham-3004/mcp-kyn-event'

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