Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConsoleHandler

Writes logs to the console with the native console object. Log format: ISO-time-string [context] message

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Readonly format

format: (record: ILogRecord) => string

Type declaration

Readonly level

level: LogLevel | LogLevel[]

Private Static active

active: boolean = true

Methods

Private defaultFormat

  • Parameters

    Returns string

handle

Protected log

Static toggle

  • toggle(active?: boolean): boolean
  • Parameters

    • Optional active: boolean

    Returns boolean

Generated using TypeDoc