Options
All
  • Public
  • Public/Protected
  • All
Menu

Logger supports 5 log levels and also can suppress logs altogether.

The order is a follows: debug < log < info < warn < error

Log types above the current log level will be captured. If you set the log level to info, warn and errors will still be logged, but debug and log logs will not be logged. Use log level 'none' to suppress all logs

Hierarchy

  • Logger

Index

Constructors

constructor

Properties

Static Private debugLevel

debugLevel: LogLevel = ...

Methods

Static debug

  • debug(...args: any[]): void
  • Parameters

    • Rest ...args: any[]

    Returns void

Static Private emitLogMessage

  • emitLogMessage(type: "debug" | "info" | "log" | "warn" | "error", args: any[]): void
  • Parameters

    • type: "debug" | "info" | "log" | "warn" | "error"
    • args: any[]

    Returns void

Static error

  • error(...args: any[]): void
  • Parameters

    • Rest ...args: any[]

    Returns void

Static getLogLevel

  • Returns LogLevel

Static info

  • info(...args: any[]): void
  • Parameters

    • Rest ...args: any[]

    Returns void

Static log

  • log(...args: any[]): void
  • Parameters

    • Rest ...args: any[]

    Returns void

Static setLogLevel

  • Parameters

    Returns void

Static warn

  • warn(...args: any[]): void
  • Parameters

    • Rest ...args: any[]

    Returns void

Generated using TypeDoc