Class LogbackLoggingSystemProperties
java.lang.Object
org.springframework.boot.logging.LoggingSystemProperties
org.springframework.boot.logging.logback.LogbackLoggingSystemProperties
LoggingSystemProperties
for Logback.- Since:
- 2.4.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.0 for removal in 3.4.0 in favor of callingRollingPolicySystemProperty.getEnvironmentVariableName()
onRollingPolicySystemProperty.FILE_NAME_PATTERN
static final String
Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.0 for removal in 3.4.0 in favor of callingRollingPolicySystemProperty.getEnvironmentVariableName()
onRollingPolicySystemProperty.MAX_FILE_SIZE
static final String
Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.0 for removal in 3.4.0 in favor of callingRollingPolicySystemProperty.getEnvironmentVariableName()
onRollingPolicySystemProperty.MAX_HISTORY
static final String
Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.0 for removal in 3.4.0 in favor of callingRollingPolicySystemProperty.getEnvironmentVariableName()
onRollingPolicySystemProperty.TOTAL_SIZE_CAP
Fields inherited from class org.springframework.boot.logging.LoggingSystemProperties
CONSOLE_LOG_CHARSET, CONSOLE_LOG_PATTERN, CONSOLE_LOG_THRESHOLD, EXCEPTION_CONVERSION_WORD, FILE_LOG_CHARSET, FILE_LOG_PATTERN, FILE_LOG_THRESHOLD, LOG_DATEFORMAT_PATTERN, LOG_FILE, LOG_LEVEL_PATTERN, LOG_PATH, PID_KEY
-
Constructor Summary
ConstructorDescriptionLogbackLoggingSystemProperties
(org.springframework.core.env.Environment environment) LogbackLoggingSystemProperties
(org.springframework.core.env.Environment environment, BiConsumer<String, String> setter) Create a newLogbackLoggingSystemProperties
instance.LogbackLoggingSystemProperties
(org.springframework.core.env.Environment environment, Function<String, String> defaultValueResolver, BiConsumer<String, String> setter) Create a newLoggingSystemProperties
instance. -
Method Summary
Methods inherited from class org.springframework.boot.logging.LoggingSystemProperties
apply, apply, setSystemProperty, setSystemProperty, setSystemProperty
-
Field Details
-
ROLLINGPOLICY_FILE_NAME_PATTERN
@Deprecated(since="3.2.0", forRemoval=true) public static final String ROLLINGPOLICY_FILE_NAME_PATTERNDeprecated, for removal: This API element is subject to removal in a future version.since 3.2.0 for removal in 3.4.0 in favor of callingRollingPolicySystemProperty.getEnvironmentVariableName()
onRollingPolicySystemProperty.FILE_NAME_PATTERN
The name of the System property that contains the rolled-over log file name pattern. -
ROLLINGPOLICY_CLEAN_HISTORY_ON_START
@Deprecated(since="3.2.0", forRemoval=true) public static final String ROLLINGPOLICY_CLEAN_HISTORY_ON_STARTDeprecated, for removal: This API element is subject to removal in a future version.since 3.2.0 for removal in 3.4.0 in favor of callingRollingPolicySystemProperty.getEnvironmentVariableName()
onRollingPolicySystemProperty.CLEAN_HISTORY_ON_START
The name of the System property that contains the clean history on start flag. -
ROLLINGPOLICY_MAX_FILE_SIZE
Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.0 for removal in 3.4.0 in favor of callingRollingPolicySystemProperty.getEnvironmentVariableName()
onRollingPolicySystemProperty.MAX_FILE_SIZE
The name of the System property that contains the file log max size. -
ROLLINGPOLICY_TOTAL_SIZE_CAP
Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.0 for removal in 3.4.0 in favor of callingRollingPolicySystemProperty.getEnvironmentVariableName()
onRollingPolicySystemProperty.TOTAL_SIZE_CAP
The name of the System property that contains the file total size cap. -
ROLLINGPOLICY_MAX_HISTORY
Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.0 for removal in 3.4.0 in favor of callingRollingPolicySystemProperty.getEnvironmentVariableName()
onRollingPolicySystemProperty.MAX_HISTORY
The name of the System property that contains the file log max history.
-
-
Constructor Details
-
LogbackLoggingSystemProperties
public LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment) -
LogbackLoggingSystemProperties
public LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment, BiConsumer<String, String> setter) Create a newLogbackLoggingSystemProperties
instance.- Parameters:
environment
- the source environmentsetter
- setter used to apply the property- Since:
- 2.4.3
-
LogbackLoggingSystemProperties
public LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment, Function<String, String> defaultValueResolver, BiConsumer<String, String> setter) Create a newLoggingSystemProperties
instance.- Parameters:
environment
- the source environmentdefaultValueResolver
- function used to resolve default values ornull
setter
- setter used to apply the property ornull
for system properties- Since:
- 3.2.0
-
-
Method Details
-
getDefaultCharset
- Overrides:
getDefaultCharset
in classLoggingSystemProperties
-
apply
- Overrides:
apply
in classLoggingSystemProperties
-
RollingPolicySystemProperty.getEnvironmentVariableName()
onRollingPolicySystemProperty.CLEAN_HISTORY_ON_START