public class OnlyIf extends LoggingDestination
Logs messages to a particular location ONLY if debug-mode is enabled.
Author:
Owen Feehan
  • 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 class LoggingDestination
      Parameters:
      outputter - the output-manager
      errorReporter - where any errors are reported, when trying to create this log.
      arguments - experiment-arguments
      detailedLogging - whether detailed logging should occur in this reporter, or a less detailed version
      Returns:
      a newly created log-reporter
    • getLog

      public LoggingDestination getLog()
      The logger to use if conditions are fulfilled
    • setLog

      public void setLog(LoggingDestination log)
      The logger to use if conditions are fulfilled
    • getRequireArguments

      public RequireArguments getRequireArguments()
      The conditions that must be fulfilled
    • setRequireArguments

      public void setRequireArguments(RequireArguments requireArguments)
      The conditions that must be fulfilled