All files / app/utils logger.ts

100% Statements 10/10
100% Branches 4/4
100% Functions 4/4
100% Lines 10/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 115x 5x 1x 17x 17x 1x 1x 9x 9x 1x  
/* eslint-disable no-console */
export class Logger {
  public static log(...args: unknown[]) {
    console.log(`[${new Date().toISOString()}]`, ...args);
  }
 
  public static error(...args: unknown[]) {
    console.error(`[${new Date().toISOString()}] Error:`, ...args);
  }
}