Class LogSilencer


  • public class LogSilencer
    extends java.lang.Object
    Helper class to help reduce log.info output. It will avoid repetitive log.info calls and instead log future occurrences to log.debug
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void infoOrDebug​(java.lang.String msg)  
      void infoOrDebug​(java.lang.String category, java.lang.String msg)  
      void reset()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogSilencer

        public LogSilencer​(Logger logger,
                           long autoResetDelayMinutes)
      • LogSilencer

        public LogSilencer​(Logger logger)
    • Method Detail

      • infoOrDebug

        public void infoOrDebug​(java.lang.String category,
                                java.lang.String msg)
      • infoOrDebug

        public void infoOrDebug​(java.lang.String msg)
      • reset

        public void reset()