Class LogConfig
java.lang.Object
dev.prozilla.pine.core.state.config.LogConfig
Manages configuration options related to logging.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BooleanConfigOptionWhen set tofalse, all ANSI escape sequences will be stripped from logs.final BooleanConfigOptionEnables logging of state changes of the application.final BooleanConfigOptionEnables logging of asset pool events.final BooleanConfigOptionEnables logs.final BooleanConfigOptionDetermines whether each log will be preceded by a timestamp.static final ConfigKey<LogHandler> final ObjectConfigOption<LogHandler> Log handler for the error log level.static final ConfigKey<LogHandler> final ObjectConfigOption<LogHandler> Log handler for the output log level.final StringConfigOptionPrefix to add to all logged strings. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ENABLE_LOGS
-
PREFIX
-
OUTPUT_LAYER
-
ERROR_LAYER
-
ENABLE_ANSI
-
ENABLE_APPLICATION_STATE_LOGS
-
ENABLE_ASSET_POOL_LOGS
-
ENABLE_TIMESTAMPS
-
enableLogs
Enables logs. Defaults totrue. -
prefix
Prefix to add to all logged strings. Defaults to a formatted badge with label"app". -
outputHandler
Log handler for the output log level. Defaults toStandardOutputLogHandler. -
errorHandler
Log handler for the error log level. Defaults toStandardErrorLogHandler. -
enableAnsi
When set tofalse, all ANSI escape sequences will be stripped from logs. Defaults totrue. -
enableApplicationStateLogs
Enables logging of state changes of the application. Defaults totrue. -
enableAssetPoolLogs
Enables logging of asset pool events. Defaults totrue. -
enableTimestamps
Determines whether each log will be preceded by a timestamp. Defaults tofalse.
-
-
Constructor Details
-
LogConfig
public LogConfig()
-