Package com.lightstreamer.log
Interface LoggerProvider
-
- All Known Implementing Classes:
ConsoleLoggerProvider
public interface LoggerProvider
Simple interface to be implemented to provide custom log consumers to the library.
An instance of the custom implemented class has to be passed to the library through theLightstreamerClient.setLoggerProvider(com.lightstreamer.log.LoggerProvider)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Logger
getLogger(java.lang.String category)
Request for a Logger instance that will be used for logging occuring on the given category.
-
-
-
Method Detail
-
getLogger
@Nonnull Logger getLogger(@Nonnull java.lang.String category)
Request for a Logger instance that will be used for logging occuring 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:
category
- 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.
-
-