Web Client 8.2.0-beta3

LoggerProvider

LoggerProvider

Simple interface to be implemented to provide custom log producers through LightstreamerClient.setLoggerProvider.


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

Constructor

new LoggerProvider()

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

Methods

getLogger(category) → {Logger}

Invoked by the LightstreamerClient 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