Interface ChangingStatusLogger.ChangingStatus
-
- All Known Implementing Classes:
ChangingStatusLogger.ChangingStatusDefault
- Enclosing class:
- ChangingStatusLogger
public static interface ChangingStatusLogger.ChangingStatusImplementations MUST override the equals method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object[]getCopyCurrentParams()Get a copy of the parameters array.Object[]getCurrentParams()Get the parameters to pass to the logger when logging a message.StringgetLogMessageTemplate()Get the message template.voidlogIfChanged(org.slf4j.Logger logger)Check if the status changed, and if so, log the configured message to the given logger.
-
-
-
Method Detail
-
getLogMessageTemplate
String getLogMessageTemplate()
Get the message template.- Returns:
- the message template, with placeholders for the parameters, to pass to the logger.
-
getCurrentParams
Object[] getCurrentParams()
Get the parameters to pass to the logger when logging a message.- Returns:
- The parameters to pass to the logger.
-
getCopyCurrentParams
Object[] getCopyCurrentParams()
Get a copy of the parameters array.- Returns:
- a copy of the parameters array.
-
logIfChanged
void logIfChanged(org.slf4j.Logger logger)
Check if the status changed, and if so, log the configured message to the given logger. The method will be periodically called.- Parameters:
logger- The logger to log to.
-
-