Class: 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.

new LoggerProvider()

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

Method Summary

getLogger
Invoked by the LightstreamerClient to request a Logger instance that will be used for logging occurring on the given category.

Method Detail

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