Class ConsoleLoggerProvider

java.lang.Object
com.lightstreamer.log.ConsoleLoggerProvider
All Implemented Interfaces:
LoggerProvider

public class ConsoleLoggerProvider extends Object implements 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 Details

    • ConsoleLoggerProvider

      public ConsoleLoggerProvider(int level)
      Creates an instace of the concrete system console logger.
      Parameters:
      level - The desired logging level. See ConsoleLogLevel.
  • Method Details

    • getLogger

      public Logger getLogger(String category)
      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 interface LoggerProvider
      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.