MCPcopy
hub / github.com/RunMaestro/Maestro / formatMessage

Function formatMessage

src/web/utils/logger.ts:61–64  ·  view source on GitHub ↗

* Format the log message with prefix and context

(_level: LogLevel, message: string, context?: string)

Source from the content-addressed store, hash-verified

59 * Format the log message with prefix and context
60 */
61function formatMessage(_level: LogLevel, message: string, context?: string): string {
62 const contextStr = context ? ` [${context}]` : '';
63 return `${config.prefix}${contextStr} ${message}`;
64}
65
66/**
67 * Web logger instance

Callers 4

debugFunction · 0.85
infoFunction · 0.85
warnFunction · 0.85
errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected