Class ToMultiple


public class ToMultiple extends LoggingDestination
Rather than logging to one location, logs to multiple locations (from a list).
Author:
Owen Feehan
  • Constructor Details

    • ToMultiple

      public ToMultiple(LoggingDestination first, LoggingDestination second)
      Constructs a logger to two locations
      Parameters:
      first - first-location
      second - second-location
    • ToMultiple

      public ToMultiple()
  • 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
    • getList

      public List<LoggingDestination> getList()
      The list of loggers to log to
    • setList

      public void setList(List<LoggingDestination> list)
      The list of loggers to log to