com.lightstreamer.log.ConsoleLoggerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ls-android-client Show documentation
Show all versions of ls-android-client Show documentation
Lightstreamer Android Client SDK
The newest version!
package com.lightstreamer.log;
import com.lightstreamer.log.LSConsoleLoggerProvider;
/**
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 {@link com.lightstreamer.client.LightstreamerClient#setLoggerProvider(LoggerProvider)}.
*/
public class ConsoleLoggerProvider implements LoggerProvider {
final LSConsoleLoggerProvider delegate;
/**
Creates an instance of the concrete system console logger.
@param level The desired logging level. See {@link ConsoleLogLevel}.
*/
public ConsoleLoggerProvider(int level) {
this.delegate = new LSConsoleLoggerProvider(level);
}
public Logger getLogger(String category) {
return delegate.getLogger(category);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy