public class LogbackLoggingSystemProperties extends LoggingSystemProperties
LoggingSystemProperties
for Logback.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROLLINGPOLICY_CLEAN_HISTORY_ON_START
The name of the System property that contains the clean history on start flag.
|
static java.lang.String |
ROLLINGPOLICY_FILE_NAME_PATTERN
The name of the System property that contains the rolled-over log file name
pattern.
|
static java.lang.String |
ROLLINGPOLICY_MAX_FILE_SIZE
The name of the System property that contains the file log max size.
|
static java.lang.String |
ROLLINGPOLICY_MAX_HISTORY
The name of the System property that contains the file log max history.
|
static java.lang.String |
ROLLINGPOLICY_TOTAL_SIZE_CAP
The name of the System property that contains the file total size cap.
|
CONSOLE_LOG_CHARSET, CONSOLE_LOG_PATTERN, EXCEPTION_CONVERSION_WORD, FILE_LOG_CHARSET, FILE_LOG_PATTERN, LOG_DATEFORMAT_PATTERN, LOG_FILE, LOG_LEVEL_PATTERN, LOG_PATH, PID_KEY
Constructor and Description |
---|
LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment) |
LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment,
java.util.function.BiConsumer<java.lang.String,java.lang.String> setter)
Create a new
LogbackLoggingSystemProperties instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(LogFile logFile,
org.springframework.core.env.PropertyResolver resolver) |
protected java.nio.charset.Charset |
getDefaultCharset() |
apply, apply, setSystemProperty, setSystemProperty, setSystemProperty
public static final java.lang.String ROLLINGPOLICY_FILE_NAME_PATTERN
public static final java.lang.String ROLLINGPOLICY_CLEAN_HISTORY_ON_START
public static final java.lang.String ROLLINGPOLICY_MAX_FILE_SIZE
public static final java.lang.String ROLLINGPOLICY_TOTAL_SIZE_CAP
public static final java.lang.String ROLLINGPOLICY_MAX_HISTORY
public LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment)
public LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment, java.util.function.BiConsumer<java.lang.String,java.lang.String> setter)
LogbackLoggingSystemProperties
instance.environment
- the source environmentsetter
- setter used to apply the propertyprotected java.nio.charset.Charset getDefaultCharset()
getDefaultCharset
in class LoggingSystemProperties
protected void apply(LogFile logFile, org.springframework.core.env.PropertyResolver resolver)
apply
in class LoggingSystemProperties