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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the System property that contains the clean history on start flag.static final String
The name of the System property that contains the rolled-over log file name pattern.static final String
The name of the System property that contains the file log max size.static final String
The name of the System property that contains the file log max history.static final String
The name of the System property that contains the file 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
(Environment environment) LogbackLoggingSystemProperties
(Environment environment, BiConsumer<String, String> setter) Create a newLogbackLoggingSystemProperties
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(LogFile logFile, PropertyResolver resolver) protected Charset
Methods inherited from class org.springframework.boot.logging.LoggingSystemProperties
apply, apply, setSystemProperty, setSystemProperty, setSystemProperty
-
Field Details
-
ROLLINGPOLICY_FILE_NAME_PATTERN
The name of the System property that contains the rolled-over log file name pattern.- See Also:
-
ROLLINGPOLICY_CLEAN_HISTORY_ON_START
The name of the System property that contains the clean history on start flag.- See Also:
-
ROLLINGPOLICY_MAX_FILE_SIZE
The name of the System property that contains the file log max size.- See Also:
-
ROLLINGPOLICY_TOTAL_SIZE_CAP
The name of the System property that contains the file total size cap.- See Also:
-
ROLLINGPOLICY_MAX_HISTORY
The name of the System property that contains the file log max history.- See Also:
-
-
Constructor Details
-
LogbackLoggingSystemProperties
-
LogbackLoggingSystemProperties
Create a newLogbackLoggingSystemProperties
instance.- Parameters:
environment
- the source environmentsetter
- setter used to apply the property- Since:
- 2.4.3
-
-
Method Details
-
getDefaultCharset
- Overrides:
getDefaultCharset
in classLoggingSystemProperties
-
apply
- Overrides:
apply
in classLoggingSystemProperties
-