Class CsvLoggerManager

java.lang.Object
de.aristaflow.adept2.base.configuration.LoggerManager
de.aristaflow.adept2.base.registry.CsvLoggerManager

public class CsvLoggerManager extends LoggerManager
This subclass refers to the CSVFormatter and decouples LoggerManager from AristaFlow-specific classes in CSVFormatter.
  • Constructor Details

    • CsvLoggerManager

      public CsvLoggerManager(boolean keepHandler, boolean debugLogging)
      Creates a new LoggerManager providing a CSVFormatter if appropriate.
      Parameters:
      keepHandler - Whether to keep already registered log handlers. Otherwise all registered log handlers will be removed.
      debugLogging - Whether debug logging should be enabled, that is, all log messages before initialising the logging will be printed to console.
  • Method Details

    • createFormatter

      protected Formatter createFormatter(boolean csvMode)
      Description copied from class: LoggerManager
      Creates a formatter for a logger.
      Specified by:
      createFormatter in class LoggerManager
      Parameters:
      csvMode - Whether the formatter is for a CSV log with additional AristaFlow-specific information when logging.
      Returns:
      A formatter for a logger.
      See Also: