MCPcopy
hub / github.com/subquery/subql / log

Function log

packages/cli/src/adapters/utils.ts:190–195  ·  view source on GitHub ↗
(level: 'error' | 'debug' | 'info' | 'notice')

Source from the content-addressed store, hash-verified

188
189export function mcpLogger(server: McpServer['server']): Logger {
190 const log = (level: 'error' | 'debug' | 'info' | 'notice') => (input: string) => {
191 void server.sendLoggingMessage({
192 level,
193 data: stripVTControlCharacters(input),
194 });
195 };
196 return {
197 debug: (message) => log('debug')(message),
198 warn: (message) => log('notice')(message),

Callers 1

mcpLoggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected