Skip to main content
Glama
logger.ts676 B
import fs from 'fs'; import path from 'path'; const homeDir = process.env.HOME || process.env.CACHE_DIR; let logDir; if (homeDir) { logDir = path.join(homeDir, '.hyperlane-mcp'); if (!fs.existsSync(logDir)) { fs.mkdirSync(logDir); } } // Set up file logging const logFile = fs.createWriteStream(`${logDir}/run.log`, { flags: 'a', }); const logger = { info: (message: string) => { const timestamp = new Date().toISOString(); logFile.write(`[${timestamp}] INFO: ${message}\n`); }, error: (message: string) => { const timestamp = new Date().toISOString(); logFile.write(`[${timestamp}] ERROR: ${message}\n`); }, }; 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/Suryansh-23/hyperlane-mcp'

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