Class LogConfig
java.lang.Object
dev.prozilla.pine.core.state.config.LogConfig
Manages configuration options related to logging.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ConfigOption
<Boolean> When set tofalse
, all ANSI escape sequences will be stripped from logs.final ConfigOption
<Boolean> Enables logging of state changes of the application.final ConfigOption
<Boolean> Defaults totrue
.static final ConfigKey
<LogHandler> final ConfigOption
<LogHandler> Log handler for the error log level.static final ConfigKey
<LogHandler> final ConfigOption
<LogHandler> Log handler for the output log level.final ConfigOption
<String> Prefix 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
-
enableLogs
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
.
-
-
Constructor Details
-
LogConfig
public LogConfig()
-