MCPcopy Index your code
hub / github.com/PaystackOSS/paystack-mcp-server / formatLog

Method formatLog

src/logger.ts:103–113  ·  view source on GitHub ↗
(level: LogLevel, message: string, meta?: any)

Source from the content-addressed store, hash-verified

101 }
102
103 private formatLog(level: LogLevel, message: string, meta?: any) {
104 const timestamp = new Date().toISOString();
105 const logEntry = {
106 timestamp,
107 level,
108 message,
109 ...(meta && { meta: redactSensitiveData(meta) }),
110 };
111
112 return JSON.stringify(logEntry);
113 }
114
115 debug(message: string, meta?: any) {
116 // Disabled for MCP stdio communication

Callers 4

debugMethod · 0.95
infoMethod · 0.95
warnMethod · 0.95
errorMethod · 0.95

Calls 1

redactSensitiveDataFunction · 0.85

Tested by

no test coverage detected