Class SwitchDetailedLogging


public class SwitchDetailedLogging extends LoggingDestination
Switches between two log-reporters depending on whether detailed logging is switched on or not
Author:
Owen Feehan
  • Constructor Details

    • SwitchDetailedLogging

      public SwitchDetailedLogging()
  • Method Details

    • create

      public StatefulMessageLogger create(OutputterChecked bom, ErrorReporter errorReporter, ExecutionArguments arguments, boolean detailedLogging)
      Description copied from class: LoggingDestination
      Creates a logger for this destination
      Specified by:
      create in class LoggingDestination
      Parameters:
      bom - 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
    • getWhenDetailed

      public LoggingDestination getWhenDetailed()
      Logger to use when detailed-logging is on
    • setWhenDetailed

      public void setWhenDetailed(LoggingDestination whenDetailed)
      Logger to use when detailed-logging is on
    • getWhenNot

      public LoggingDestination getWhenNot()
      Logger to use when detailed-logging is off
    • setWhenNot

      public void setWhenNot(LoggingDestination whenNot)
      Logger to use when detailed-logging is off