Class LoggingHandler

  • public class LoggingHandler
    extends java.util.logging.Handler
    A custom handler used to record log entries. This handler queues up log records as they come, up to MAX_RECORDS (currently 1000) records. If it reaches this capacity it will remove the older records from the queue before adding the next one.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      static LoggingHandler getInstance()  
      java.util.Collection<LogEntry> getRecords()  
      void publish​(java.util.logging.LogRecord logRecord)  
      • Methods inherited from class java.util.logging.Handler

        getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
      • Methods inherited from class java.lang.Object

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

      • getRecords

        public java.util.Collection<LogEntry> getRecords()
        an unmodifiable list of LogEntry.
      • publish

        public void publish​(java.util.logging.LogRecord logRecord)
        Specified by:
        publish in class java.util.logging.Handler
      • flush

        public void flush()
        Specified by:
        flush in class java.util.logging.Handler
      • close

        public void close()
                   throws java.lang.SecurityException
        Specified by:
        close in class java.util.logging.Handler