Class RateLogger


  • public class RateLogger
    extends Object
    This logs the message once in the beginning and once every LOG_INTERVAL.
    • 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​(String newMsg)
      • rateLimitLog

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