Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LoggerManager

Class responsible for providing loggers to app modules.

Hierarchy

  • LoggerManager

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly console

Console transport manager which configures console transport.

Readonly file

File transport manager which configures file transport.

Readonly formatting

formatting: FormattingManager

Formatting manager which configures format of the logging output.

Readonly graylog2

graylog2: GrayLogsManager

Graylog2 transport manager which configures graylog2 transport.

Methods

for

  • for(module: string): Logger
  • Method used by modules to retrieve their loggers.
    Formatting and at least one of the transport managers needs to be configured before calling this method.
    After obtaining logger, module should not call again this method (i.e. it needs to save obtained logger).

    Parameters

    • module: string

      Module for which logger will be created.

    Returns Logger