Log manager. A logger that allows managing child loggers

Hierarchy (View Summary)

Constructors

Properties

debug: (fmt: string, ...args: unknown[]) => void = ...
error: (fmt: string, ...args: unknown[]) => void = ...
handler: (
    color: number,
    level: number,
    tag: string,
    fmt: string,
    args: unknown[],
) => void
info: (fmt: string, ...args: unknown[]) => void = ...
level: number
parent: Logger = mgr
prefix: string = ''
tag: string
verbose: (fmt: string, ...args: unknown[]) => void = ...
warn: (fmt: string, ...args: unknown[]) => void = ...
DEBUG: number = 4
ERROR: number = 1
INFO: number = 3
OFF: number = 0
VERBOSE: number = 5
WARN: number = 2

Methods

  • Create a Logger with the given tag

    Parameters

    • tag: string

      Logger tag

    Returns Logger

  • Filter logging by tags.

    Parameters

    • cb: null | (tag: string) => boolean

    Returns void

  • Returns string

  • Parameters

    • level: number
    • fmt: string
    • ...args: unknown[]

    Returns void