Class RemoteLogManager


  • public class RemoteLogManager
    extends java.lang.Object
    This class sets up remote logging or falls back to local logging. The later is especially useful in case of unit tests.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close remote connections if any
      void setupConsoleLogger​(java.util.logging.Level logLevel)
      Configure the logger to write to the console
      void setupRemoteLogger​(java.lang.String host, int port, java.util.logging.Level logLevel)
      Configure the logger to write to a socket
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoteLogManager

        public RemoteLogManager()
    • Method Detail

      • setupConsoleLogger

        public void setupConsoleLogger​(java.util.logging.Level logLevel)
        Configure the logger to write to the console
        Parameters:
        logLevel - from this level on upward messages are logged
      • setupRemoteLogger

        public void setupRemoteLogger​(java.lang.String host,
                                      int port,
                                      java.util.logging.Level logLevel)
        Configure the logger to write to a socket
        Parameters:
        host - host that the log should be sent to
        port - port on which the log receiver is listening
        logLevel - from this level on upward messages are logged
      • close

        public void close()
        Close remote connections if any