Class Logging

java.lang.Object
de.hsh.graja.util.Logging

public class Logging extends Object
This class is capable of logging formatted messages to memory buffer or standard error stream
  • Constructor Details

  • Method Details

    • setLoggingLevel

      public static void setLoggingLevel(Logging.LoggingLevel level)
    • addMemoryTarget

      public boolean addMemoryTarget()
    • getName

      public String getName()
    • getLoggingLevel

      public Logging.LoggingLevel getLoggingLevel()
    • isLoggable

      public boolean isLoggable(Logging.LoggingLevel loggingLevel)
    • enableTimestamps

      public void enableTimestamps()
    • disableTimestamps

      public void disableTimestamps()
    • resetLogger

      public String resetLogger()
      only allowed for target MEMORY
    • resetLogger

      public String resetLogger(boolean removeMemoryTarget)
      only allowed for target MEMORY
    • getContent

      public String getContent()
      only allowed for target MEMORY
    • dispose

      public void dispose()
      Dispose resources. After calling this method this object cannot be used any longer.
    • createLogMessage

      public static String createLogMessage(Logging.LoggingLevel level, boolean includeTimestamp, String format, Object... args)
      If you want to create a log message that is not directly written to the logger
      Parameters:
      level -
      includeTimestamp -
      format -
      args -
    • quiet

      public void quiet(String format, Object... args)
    • error

      public void error(String format, Object... args)
    • warn

      public void warn(String format, Object... args)
    • info

      public void info(String format, Object... args)
    • debug

      public void debug(String format, Object... args)
    • separator

      public void separator()
    • rawAppend

      public void rawAppend(String s)