Class ReportLogger


  • public class ReportLogger
    extends java.util.logging.Handler
    Custom Logger used for TransactionReport
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.StringBuilder sb  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReportLogger()  
    • Method Summary

      Modifier and Type Method Description
      void close()  
      void flush()  
      static java.lang.StringBuilder getSb()  
      void publish​(java.util.logging.LogRecord record)
      Logs message and prints it out.
      • 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
    • Field Detail

      • sb

        private static final java.lang.StringBuilder sb
    • Constructor Detail

      • ReportLogger

        public ReportLogger()
    • Method Detail

      • publish

        public void publish​(java.util.logging.LogRecord record)
        Logs message and prints it out.
        Specified by:
        publish in class java.util.logging.Handler
        Parameters:
        record - message to be printed
      • 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
        Throws:
        java.lang.SecurityException
      • getSb

        public static java.lang.StringBuilder getSb()