public class DefaultIntervalLoggerView extends Object implements IntervalLoggerView
Watchdog: property1=value1, property2=value3, ...
All values are logged on a single line.| Constructor and Description |
|---|
DefaultIntervalLoggerView() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatStatusMessage(IntervalProperty[] properties)
Format the message to be logged.
|
void |
logMessage(String message)
Log the formatted message at the INFO priority.
|
public String formatStatusMessage(IntervalProperty[] properties)
formatStatusMessage in interface IntervalLoggerViewproperties - An array of properties to log.DefaultIntervalLoggerViewpublic void logMessage(String message)
IntervalLoggerController wd = SecurityLoggingFactory.getControllerInstance();
// Add support for security markers
wd.setStatusMessageView( new DefaultIntervalLoggerView() {
public void logMessage( String message ) {
logger.debug( SecurityMarkers.RESTRICTED, message );
}
});
logMessage in interface IntervalLoggerViewmessage - Message to log.DefaultIntervalLoggerViewCopyright © 2021. All rights reserved.