Skip to main content
Glama
writeToLogFile.ts496 B
/** * Writes a message to a log file * @param envLogFilePath - The path to the log file * @param fullMessage - The message to write to the log file */ import { appendFileSync } from 'fs' export function writeToLogFile(envLogFilePath: string, fullMessage: string): void { try { appendFileSync(envLogFilePath, fullMessage) } catch (err) { const errorMessage = err instanceof Error ? err.message : String(err) process.stderr.write(`Failed to write to log file: ${errorMessage}\n`) } }

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/tbreeding/jira-mcp'

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