Class RateLogger


  • public class RateLogger
    extends java.lang.Object
    This logs the message once in the beginning and once every LOG_INTERVAL.
    • Constructor Summary

      Constructors 
      Constructor Description
      RateLogger​(org.slf4j.Logger log)  
      RateLogger​(org.slf4j.Logger log, long interval)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()  
      void rateLimitLog​(java.lang.String newMsg)  
      void rateLimitLog​(java.lang.String newMsg, java.lang.String newValue)
      In addition to the message, it also takes a value.
      • Methods inherited from class java.lang.Object

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

      • RateLogger

        public RateLogger​(org.slf4j.Logger log)
      • RateLogger

        public RateLogger​(org.slf4j.Logger log,
                          long interval)
    • Method Detail

      • flush

        public void flush()
      • rateLimitLog

        public void rateLimitLog​(java.lang.String newMsg)
      • rateLimitLog

        public void rateLimitLog​(java.lang.String newMsg,
                                 java.lang.String newValue)
        In addition to the message, it also takes a value.