Class Logger


  • public final class Logger
    extends java.lang.Object
    Poor man's logging infrastructure. This just deals with maintaining a per- connection ID and log level, and timestamping output.
    • Constructor Summary

      Constructors 
      Constructor Description
      Logger()  
      Logger​(int connectionID)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.String str)  
      void debug​(java.lang.String str, java.lang.Throwable t)  
      int getLogLevel()  
      void info​(java.lang.String str)  
      void info​(java.lang.String str, java.lang.Throwable t)  
      void log​(java.lang.String str, java.lang.Throwable t)  
      boolean logDebug()  
      boolean logInfo()  
      void setLogLevel​(int level)  
      • Methods inherited from class java.lang.Object

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

      • Logger

        public Logger()
      • Logger

        public Logger​(int connectionID)
    • Method Detail

      • setLogLevel

        public void setLogLevel​(int level)
      • getLogLevel

        public int getLogLevel()
      • logDebug

        public boolean logDebug()
      • logInfo

        public boolean logInfo()
      • debug

        public void debug​(java.lang.String str)
      • debug

        public void debug​(java.lang.String str,
                          java.lang.Throwable t)
      • info

        public void info​(java.lang.String str)
      • info

        public void info​(java.lang.String str,
                         java.lang.Throwable t)
      • log

        public void log​(java.lang.String str,
                        java.lang.Throwable t)