public class ToTextFileOnlyIfFailure extends ToTextFileBase
ToTextFile
but the
log is ONLY written if a failure occurs in the experiment.
If no failure, occurs no file is outputted on the filesystem at all.
This is a convenient means of avoiding write and sotrage costs of files of perhaps minimal value if nothing went wrong.
Constructor and Description |
---|
ToTextFileOnlyIfFailure() |
Modifier and Type | Method and Description |
---|---|
StatefulMessageLogger |
create(OutputterChecked outputter,
ErrorReporter errorReporter,
ExecutionArguments arguments,
boolean detailedLogging)
Creates a logger for this destination
|
getOutputName, setOutputName
createWithConsoleFallback, createWithLogFallback
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public StatefulMessageLogger create(OutputterChecked outputter, ErrorReporter errorReporter, ExecutionArguments arguments, boolean detailedLogging)
LoggingDestination
create
in class LoggingDestination
outputter
- the output-managererrorReporter
- where any errors are reported, when trying to create this log.arguments
- experiment-argumentsdetailedLogging
- whether detailed logging should occur in this reporter, or a less
detailed versionCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.