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 theCSVFormatter
and decouplesLoggerManager
from 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 newLoggerManager
providing aCSVFormatter
if appropriate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Formatter
createFormatter(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 newLoggerManager
providing aCSVFormatter
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 Detail
-
createFormatter
protected Formatter createFormatter(boolean csvMode)
Description copied from class:LoggerManager
Creates a formatter for a logger.- Specified by:
createFormatter
in 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
-
-