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

Method outputConsole

src/web-ui/src/shared/utils/logger.ts:361–378  ·  view source on GitHub ↗
(level: LogLevel, message: string, data?: any)

Source from the content-addressed store, hash-verified

359 }
360
361 private outputConsole(level: LogLevel, message: string, data?: any): void {
362 const args = data !== undefined ? [message, data] : [message];
363 switch (level) {
364 case LogLevel.TRACE:
365 case LogLevel.DEBUG:
366 console.debug(...args);
367 break;
368 case LogLevel.INFO:
369 console.info(...args);
370 break;
371 case LogLevel.WARN:
372 console.warn(...args);
373 break;
374 case LogLevel.ERROR:
375 console.error(...args);
376 break;
377 }
378 }
379
380 public createContextLogger(context: string) {
381 return {

Callers 1

outputMethod · 0.95

Calls 4

debugMethod · 0.80
warnMethod · 0.80
infoMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected