Class CsvLoggerManager
java.lang.Object
de.aristaflow.adept2.base.configuration.LoggerManager
de.aristaflow.adept2.base.registry.CsvLoggerManager
This subclass refers to the
CSVFormatter and decouples LoggerManager from
AristaFlow-specific classes in CSVFormatter.-
Field Summary
Fields inherited from class de.aristaflow.adept2.base.configuration.LoggerManager
configuredLoggers, ourLogger -
Constructor Summary
ConstructorsConstructorDescriptionCsvLoggerManager(boolean keepHandler, boolean debugLogging) Creates a newLoggerManagerproviding aCSVFormatterif appropriate. -
Method Summary
Modifier and TypeMethodDescriptionprotected FormattercreateFormatter(boolean csvMode) Creates a formatter for a logger.Methods inherited from class de.aristaflow.adept2.base.configuration.LoggerManager
adjustLogLevel, initialiseConsoleLogging, initialiseFileLogging, resetLogger
-
Constructor Details
-
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 Details
-
createFormatter
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:
-