A registry for creating named Loggers.

Implements

Constructors

Methods

  • Parameters

    Returns void

    add your processors in the constructors instead.

    Adds a new LogRecordProcessor to this logger.

  • Notifies all registered LogRecordProcessor to flush any buffered data.

    Returns a promise which is resolved when all flushes are complete.

    Returns Promise<void>

  • Get a logger with the configuration of the LoggerProvider.

    Parameters

    • name: string
    • Optionalversion: string
    • Optionaloptions: LoggerOptions

    Returns Logger

  • Flush all buffered data and shut down the LoggerProvider and all registered LogRecordProcessor.

    Returns a promise which is resolved when all flushes are complete.

    Returns Promise<void>