Class OnlyIf
Logs messages to a particular location ONLY if debug-mode is enabled.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(OutputterChecked outputter, ErrorReporter errorReporter, ExecutionArguments arguments, boolean detailedLogging) Creates a logger for this destinationgetLog()
The logger to use if conditions are fulfilledThe conditions that must be fulfilledvoid
setLog
(LoggingDestination log) The logger to use if conditions are fulfilledvoid
setRequireArguments
(RequireArguments requireArguments) The conditions that must be fulfilledMethods inherited from class org.anchoranalysis.experiment.bean.log.LoggingDestination
createWithConsoleFallback, createWithLogFallback
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
OnlyIf
public OnlyIf()
-
-
Method Details
-
create
public StatefulMessageLogger create(OutputterChecked outputter, ErrorReporter errorReporter, ExecutionArguments arguments, boolean detailedLogging) Description copied from class:LoggingDestination
Creates a logger for this destination- Specified by:
create
in classLoggingDestination
- Parameters:
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 version- Returns:
- a newly created log-reporter
-
getLog
The logger to use if conditions are fulfilled -
setLog
The logger to use if conditions are fulfilled -
getRequireArguments
The conditions that must be fulfilled -
setRequireArguments
The conditions that must be fulfilled
-