Class ChangingStatusLogger
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.util.ChangingStatusLogger
A logger that regularly logs a status message, if the status has changed.
- Author:
- hylke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceImplementations MUST override the equals method.static class -
Constructor Summary
ConstructorsConstructorDescriptionChangingStatusLogger(org.slf4j.Logger logger) Create a new logger, with the given logger, message and status. -
Method Summary
Modifier and TypeMethodDescriptionaddLogStatus(ChangingStatusLogger.ChangingStatus logStatus) setLogIntervalMs(long logIntervalMs) start()voidstop()
-
Constructor Details
-
ChangingStatusLogger
public ChangingStatusLogger(org.slf4j.Logger logger) Create a new logger, with the given logger, message and status. The status should match the message in that the number of placeholders in the message must be the same as the number of items in the status.- Parameters:
logger- The logger to log to.
-
-
Method Details
-
addLogStatus
-
removeLogStatus
-
setLogIntervalMs
-
start
-
stop
public void stop()
-