Package org.apache.zookeeper.server
Class RateLogger
java.lang.Object
org.apache.zookeeper.server.RateLogger
This logs the message once in the beginning and once every LOG_INTERVAL.
-
Constructor Summary
ConstructorsConstructorDescriptionRateLogger
(org.slf4j.Logger log) RateLogger
(org.slf4j.Logger log, long interval) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
void
rateLimitLog
(String newMsg) void
rateLimitLog
(String newMsg, String newValue) In addition to the message, it also takes a value.
-
Constructor Details
-
RateLogger
public RateLogger(org.slf4j.Logger log) -
RateLogger
public RateLogger(org.slf4j.Logger log, long interval)
-
-
Method Details
-
flush
public void flush() -
rateLimitLog
-
rateLimitLog
In addition to the message, it also takes a value.
-