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

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Readonly format

format: (record: ILogRecord) => string

Type declaration

Readonly level

level: LogLevel | LogLevel[]

Static Private active

active: boolean = true

Methods

Private defaultFormat

  • Parameters

    Returns string

handle

Protected log

Static toggle

  • toggle(active?: undefined | false | true): void
  • Parameters

    • Optional active: undefined | false | true

    Returns void

Generated using TypeDoc