MCPcopy
hub / github.com/gitify-app/gitify / logMessage

Function logMessage

src/shared/logger.ts:59–78  ·  view source on GitHub ↗
(
  logFunction: AllowedLogFunction,
  type: string,
  message: string,
  err?: Error,
  contexts: string[] = [],
)

Source from the content-addressed store, hash-verified

57}
58
59function logMessage(
60 logFunction: AllowedLogFunction,
61 type: string,
62 message: string,
63 err?: Error,
64 contexts: string[] = [],
65) {
66 const args: (string | Error)[] = [`[${type}]`, message];
67
68 if (contexts.length) {
69 const combined = contexts.join(' >> ');
70 args.push(`[${combined}]`);
71 }
72
73 if (err) {
74 args.push(err);
75 }
76
77 logFunction(...args);
78}

Callers 3

logInfoFunction · 0.85
logWarnFunction · 0.85
logErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected