Class LogSilencer
java.lang.Object
org.apache.sling.discovery.commons.providers.util.LogSilencer
Helper class to help reduce log.info output. It will avoid repetitive
log.info calls and instead log future occurrences to log.debug
-
Constructor Summary
ConstructorDescriptionLogSilencer
(org.slf4j.Logger logger) LogSilencer
(org.slf4j.Logger logger, long autoResetDelayMinutes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
infoOrDebug
(String msg) void
infoOrDebug
(String category, String msg) void
reset()
-
Constructor Details
-
LogSilencer
public LogSilencer(org.slf4j.Logger logger, long autoResetDelayMinutes) -
LogSilencer
public LogSilencer(org.slf4j.Logger logger)
-
-
Method Details
-
infoOrDebug
-
infoOrDebug
-
reset
public void reset()
-