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 theCSVFormatterand decouplesLoggerManagerfrom AristaFlow-specific classes inCSVFormatter.
-
-
Field Summary
-
Fields inherited from class de.aristaflow.adept2.base.configuration.LoggerManager
configuredLoggers, ourLogger
-
-
Constructor Summary
Constructors Constructor Description CsvLoggerManager(boolean keepHandler, boolean debugLogging)Creates a newLoggerManagerproviding aCSVFormatterif appropriate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FormattercreateFormatter(boolean csvMode)Creates a formatter for a logger.-
Methods inherited from class de.aristaflow.adept2.base.configuration.LoggerManager
adjustLogLevel, initialiseConsoleLogging, initialiseFileLogging, resetLogger
-
-
-
-
Constructor Detail
-
CsvLoggerManager
public CsvLoggerManager(boolean keepHandler, boolean debugLogging)Creates a newLoggerManagerproviding aCSVFormatterif 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 Detail
-
createFormatter
protected Formatter createFormatter(boolean csvMode)
Description copied from class:LoggerManagerCreates a formatter for a logger.- Specified by:
createFormatterin classLoggerManager- 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:
CSVFormatter
-
-