Node.js Client 9.1.0

LoggerProvider

LoggerProvider

Simple interface to be implemented to provide custom log producers.


A simple implementation of this interface is included with this library: ConsoleLoggerProvider.

Constructor

new LoggerProvider()

This is a dummy constructor not to be used in any case.

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.

Returns:

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

Type
Logger