Package com.lightstreamer.log
Class ConsoleLoggerProvider
java.lang.Object
com.lightstreamer.log.ConsoleLoggerProvider
- All Implemented Interfaces:
LoggerProvider
Simple concrete logging provider that logs on the system console.
To be used, an instance of this class has to be passed to the library through the
LightstreamerClient.setLoggerProvider(LoggerProvider)
.-
Constructor Summary
ConstructorDescriptionConsoleLoggerProvider
(int level) Creates an instace of the concrete system console logger. -
Method Summary
-
Constructor Details
-
ConsoleLoggerProvider
public ConsoleLoggerProvider(int level) Creates an instace of the concrete system console logger.- Parameters:
level
- The desired logging level. SeeConsoleLogLevel
.
-
-
Method Details
-
getLogger
Description copied from interface:LoggerProvider
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.- Specified by:
getLogger
in interfaceLoggerProvider
- 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.
-