Class MultipleLoggers
Object
org.anchoranalysis.experiment.log.MultipleLoggers
- All Implemented Interfaces:
MessageLogger,StatefulMessageLogger
public class MultipleLoggers extends Object implements StatefulMessageLogger
Logs messages to multiple other loggers.
- Author:
- Owen Feehan
-
Constructor Details
-
MultipleLoggers
Creates with a stream of loggers.- Parameters:
stream- the stream of loggers.
-
-
Method Details
-
start
Description copied from interface:StatefulMessageLoggerStarts logging.This must be called once before any logging occurs.
- Specified by:
startin interfaceStatefulMessageLogger- Throws:
OperationFailedException- if logging cannot be successfully started.
-
log
- Specified by:
login interfaceMessageLogger
-
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.
-
logFormatted
- Specified by:
logFormattedin interfaceMessageLogger
-