MCPcopy Create free account
hub / github.com/GCWing/BitFun / createContextLogger

Method createContextLogger

src/web-ui/src/shared/utils/logger.ts:380–388  ·  view source on GitHub ↗
(context: string)

Source from the content-addressed store, hash-verified

378 }
379
380 public createContextLogger(context: string) {
381 return {
382 trace: (message: string, data?: any) => this.trace(message, context, data),
383 debug: (message: string, data?: any) => this.debug(message, context, data),
384 info: (message: string, data?: any) => this.info(message, context, data),
385 warn: (message: string, data?: any) => this.warn(message, context, data),
386 error: (message: string, data?: any) => this.error(message, context, data),
387 };
388 }
389}
390
391export const logger = Logger.getInstance();

Callers 1

createLoggerFunction · 0.80

Calls 5

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

Tested by

no test coverage detected