Class LogbackLoggingSystemProperties
java.lang.Object
org.springframework.boot.logging.LoggingSystemProperties
org.springframework.boot.logging.logback.LogbackLoggingSystemProperties
LoggingSystemProperties for Logback.- Since:
- 2.4.0
- Author:
- Phillip Webb
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, 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_PATTERNstatic final StringDeprecated, 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_SIZEstatic final StringDeprecated, 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_HISTORYstatic final StringDeprecated, 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_CAPFields inherited from class org.springframework.boot.logging.LoggingSystemPropertiesCONSOLE_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 SummaryConstructorsConstructorDescriptionLogbackLoggingSystemProperties(Environment environment) LogbackLoggingSystemProperties(Environment environment, BiConsumer<String, String> setter) Create a newLogbackLoggingSystemPropertiesinstance.LogbackLoggingSystemProperties(Environment environment, Function<String, String> defaultValueResolver, BiConsumer<String, String> setter) Create a newLoggingSystemPropertiesinstance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidapply(LogFile logFile, PropertyResolver resolver) protected CharsetMethods inherited from class org.springframework.boot.logging.LoggingSystemPropertiesapply, 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_PATTERNThe 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_STARTThe name of the System property that contains the clean history on start flag.
- 
ROLLINGPOLICY_MAX_FILE_SIZEDeprecated, 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_SIZEThe name of the System property that contains the file log max size.
- 
ROLLINGPOLICY_TOTAL_SIZE_CAPDeprecated, 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_CAPThe name of the System property that contains the file total size cap.
- 
ROLLINGPOLICY_MAX_HISTORYDeprecated, 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_HISTORYThe name of the System property that contains the file log max history.
 
- 
- 
Constructor Details- 
LogbackLoggingSystemProperties
- 
LogbackLoggingSystemPropertiesCreate a newLogbackLoggingSystemPropertiesinstance.- Parameters:
- environment- the source environment
- setter- setter used to apply the property
- Since:
- 2.4.3
 
- 
LogbackLoggingSystemPropertiespublic LogbackLoggingSystemProperties(Environment environment, Function<String, String> defaultValueResolver, BiConsumer<String, String> setter) Create a newLoggingSystemPropertiesinstance.- Parameters:
- environment- the source environment
- defaultValueResolver- function used to resolve default values or- null
- setter- setter used to apply the property or- nullfor system properties
- Since:
- 3.2.0
 
 
- 
- 
Method Details- 
getDefaultCharset- Overrides:
- getDefaultCharsetin class- LoggingSystemProperties
 
- 
apply- Overrides:
- applyin class- LoggingSystemProperties
 
 
- 
RollingPolicySystemProperty.getEnvironmentVariableName()onRollingPolicySystemProperty.CLEAN_HISTORY_ON_START