Node.js Client 9.2.1

ConsoleLoggerProvider

ConsoleLoggerProvider

new ConsoleLoggerProvider(level)

Creates an instance of the concrete system console logger.

Parameters:
Name Type Description
level number

The desired logging level. See ConsoleLogLevel.

Implements:

Methods

getLogger(category) → {Logger}

Invoked to request a Logger instance that will be used for logging occurring on the given category. It is suggested, but not mandatory, that subsequent calls to this method related to the same category return the same Logger instance.

Parameters:
Name Type Description
category String

the log category all messages passed to the given Logger instance will pertain to.

Implements:
Returns:

A Logger instance that will receive log lines related to the given category.

Type
Logger