Class Logging


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

      • addMemoryTarget

        public boolean addMemoryTarget()
      • getName

        public String getName()
      • 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)