Class Logger

java.lang.Object
org.jrd.backend.core.Logger

public class Logger extends Object
Class for logging Strings and Exceptions
  • Field Details

    • NULL_OBJECT_MESSAGE

      private static final String NULL_OBJECT_MESSAGE
      See Also:
    • isVerbose

      private boolean isVerbose
    • guiLogging

      private boolean guiLogging
  • Constructor Details

    • Logger

      public Logger()
  • Method Details

    • setVerbose

      public void setVerbose(boolean verbose)
    • isVerbose

      public boolean isVerbose()
    • getLogger

      public static Logger getLogger()
    • log

      public void log(Logger.Level level, String message)
    • log

      public void log(Logger.Level level, Throwable throwable)
    • log

      public void log(String message)
      Shorthand for log(Logger.Level.DEBUG, message).
      Parameters:
      message - the string to be logged
    • log

      public void log(Throwable throwable)
      Shorthand for log(Logger.Level.DEBUG, throwable).
      Parameters:
      throwable - the exception/error to be logged
    • log

      private void log(Logger.Level level, Object o)
    • disableGuiLogging

      public void disableGuiLogging()
    • enableGuiLogging

      public void enableGuiLogging()
    • exToString

      private String exToString(Throwable e)