Class ConsoleMessageLogger
Object
ConsoleMessageLogger
- All Implemented Interfaces:
MessageLogger,StatefulMessageLogger
Logs messages to the console, STDOUT.
- Author:
- Owen
-
Constructor Details
-
ConsoleMessageLogger
public ConsoleMessageLogger()
-
-
Method Details
-
start
public void start()Description copied from interface:StatefulMessageLoggerStarts logging.This must be called once before any logging occurs.
- Specified by:
startin interfaceStatefulMessageLogger
-
log
Description copied from interface:MessageLoggerLogs a message.- Specified by:
login interfaceMessageLogger- Parameters:
message- the message to log.
-
logFormatted
Description copied from interface:MessageLoggerLogs a message, derived from a format-string.- Specified by:
logFormattedin interfaceMessageLogger- Parameters:
formatString- a format string like inString.format(java.lang.String, java.lang.Object...).args- the arguments that match the placeholder informatStringlike inString.format(java.lang.String, java.lang.Object...).
-
close
public void close(boolean successful, boolean warningOccurred) Description copied from interface:StatefulMessageLoggerStops logging.This must be called once after all logging has occurred.
- Specified by:
closein interfaceStatefulMessageLogger- Parameters:
successful- true when the task completed successfully.warningOccurred- true if at least one warning has occurred, false otherwise.
-