Class SwitchDetailedLogging
Switches between two log-reporters depending on whether detailed logging is switched on or not
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(OutputterChecked bom, ErrorReporter errorReporter, ExecutionArguments arguments, boolean detailedLogging) Creates a logger for this destinationLogger to use when detailed-logging is onLogger to use when detailed-logging is offvoidsetWhenDetailed(LoggingDestination whenDetailed) Logger to use when detailed-logging is onvoidsetWhenNot(LoggingDestination whenNot) Logger to use when detailed-logging is offMethods inherited from class org.anchoranalysis.experiment.bean.log.LoggingDestination
createWithConsoleFallback, createWithLogFallbackMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
SwitchDetailedLogging
public SwitchDetailedLogging()
-
-
Method Details
-
create
public StatefulMessageLogger create(OutputterChecked bom, ErrorReporter errorReporter, ExecutionArguments arguments, boolean detailedLogging) Description copied from class:LoggingDestinationCreates a logger for this destination- Specified by:
createin classLoggingDestination- Parameters:
bom- 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
-
getWhenDetailed
Logger to use when detailed-logging is on -
setWhenDetailed
Logger to use when detailed-logging is on -
getWhenNot
Logger to use when detailed-logging is off -
setWhenNot
Logger to use when detailed-logging is off
-