A basic logger which handles filtering by level.

With the default options it will write to console.error and it will use the formatting provided by console.error. If the destination is overwritten, then it will use an included formatter similar to util.format.

If a formatter is available, then that should be overridden as well for performance.

Hierarchy

  • BasicLogger

Implements

Constructors

Properties

destination?: ((line) => void)

Type declaration

    • (line): void
    • Parameters

      • line: string

      Returns void

formatter?: ((...args) => string)

Type declaration

    • (...args): string
    • Parameters

      • Rest ...args: any[]
        Rest

      Returns string

logLevel: number
name: string

Methods

Generated using TypeDoc