Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LoggerImpl

Logger class to log things in the application. This isn't an injectable service

Hierarchy

  • LoggerImpl

Implements

Index

Constructors

constructor

  • new LoggerImpl(log_lvl: string, identifier: string, pretty_print: boolean): LoggerImpl

Properties

Private _identifier

_identifier: string

Private _logLevel

_logLevel: LogLevel

Private _pretty_print

_pretty_print: boolean

Methods

debug

  • debug(msg: string): void

error

  • error(msg: string): void

info

  • info(msg: string): void

Private log

  • log(msg: string, color_css: string, lvl: LogLevel): void

Private logLevelToString

  • logLevelToString(lvl: LogLevel): string

Private stringToLogLevel

  • stringToLogLevel(lvl: string): LogLevel
  • Parses the log level string to an enum

    Parameters

    • lvl: string

      string

    Returns LogLevel

    LogLevel according to the log level string. Fallback is DEBUG

warn

  • warn(msg: string): void