Class LoggingDestination
- Direct Known Subclasses:
OnlyIf
,SwitchDetailedLogging
,ToConsole
,ToMultiple
,ToTextFileBase
The destination(s) to which log-messages are sent.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StatefulMessageLogger
create
(OutputterChecked outputter, ErrorReporter fallbackErrorReporter, ExecutionArguments arguments, boolean detailedLogging) Creates a logger for this destinationcreateWithConsoleFallback
(OutputterChecked outputter, ExecutionArguments arguments, boolean detailedLogging) Creates a logger for this destination - and if anything goes wrong reporting fallback into the console.createWithLogFallback
(OutputterChecked outputter, MessageLogger fallbackErrorReporter, ExecutionArguments arguments, boolean detailedLogging) Creates a logger for this destination - and if anything goes wrong reporting fallback into a log.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
LoggingDestination
public LoggingDestination()
-
-
Method Details
-
createWithConsoleFallback
public StatefulMessageLogger createWithConsoleFallback(OutputterChecked outputter, ExecutionArguments arguments, boolean detailedLogging) Creates a logger for this destination - and if anything goes wrong reporting fallback into the console.Identical to
createWithLogFallback(org.anchoranalysis.io.output.outputter.OutputterChecked, org.anchoranalysis.core.log.MessageLogger, org.anchoranalysis.experiment.arguments.ExecutionArguments, boolean)
but uses aConsoleMessageLogger
as thefallbackErrorReporter
.- Parameters:
outputter
- the output-managerarguments
- experiment-argumentsdetailedLogging
- whether detailed logging should occur in this reporter, or a less detailed version- Returns:
- a newly created log-reporter
-
createWithLogFallback
public StatefulMessageLogger createWithLogFallback(OutputterChecked outputter, MessageLogger fallbackErrorReporter, ExecutionArguments arguments, boolean detailedLogging) Creates a logger for this destination - and if anything goes wrong reporting fallback into a log.- Parameters:
outputter
- the output-managerfallbackErrorReporter
- 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
-
create
public abstract StatefulMessageLogger create(OutputterChecked outputter, ErrorReporter fallbackErrorReporter, ExecutionArguments arguments, boolean detailedLogging) Creates a logger for this destination- Parameters:
outputter
- the output-managerfallbackErrorReporter
- 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
-