Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace ConsoleLogger

Index

Type aliases

Variables

Functions

Type aliases

Console

Console: (message?: any, ...optionalParams: any[]) => void

Type declaration

    • (message?: any, ...optionalParams: any[]): void
    • Parameters

      • Optional message: any
      • Rest ...optionalParams: any[]

      Returns void

Variables

Const consoles

consoles: Map<LogLevel, (message?: any, ...optionalParams: any[]) => void> = new Map<LogLevel, Console>([[LogLevel.FATAL, console.error],[LogLevel.ERROR, console.error],[LogLevel.WARN, console.warn],[LogLevel.INFO, console.info],[LogLevel.DEBUG, console.debug],[LogLevel.TRACE, console.trace]])

Const originalConsoleLog

originalConsoleLog: log = console.log

Functions

log

  • log(name: string, logLevel: number, message: string, params: any[]): void

reset

  • reset(): void