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:
-
Constructor Summary
ConstructorsConstructorDescriptionLogbackLoggingSystemProperties(org.springframework.core.env.Environment environment) LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment, @Nullable BiConsumer<String, @Nullable String> setter) Create a newLogbackLoggingSystemPropertiesinstance.LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment, @Nullable Function<@Nullable String, @Nullable String> defaultValueResolver, @Nullable BiConsumer<String, @Nullable String> setter) Create a newLoggingSystemPropertiesinstance. -
Method Summary
Methods inherited from class LoggingSystemProperties
apply, apply, getDefaultConsoleCharset, getDefaultFileCharset, setSystemProperty
-
Constructor Details
-
LogbackLoggingSystemProperties
public LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment) -
LogbackLoggingSystemProperties
public LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment, @Nullable BiConsumer<String, @Nullable String> setter) Create a newLogbackLoggingSystemPropertiesinstance.- Parameters:
environment- the source environmentsetter- setter used to apply the property- Since:
- 2.4.3
-
LogbackLoggingSystemProperties
public LogbackLoggingSystemProperties(org.springframework.core.env.Environment environment, @Nullable Function<@Nullable String, @Nullable String> defaultValueResolver, @Nullable BiConsumer<String, @Nullable String> setter) Create a newLoggingSystemPropertiesinstance.- Parameters:
environment- the source environmentdefaultValueResolver- function used to resolve default values ornullsetter- setter used to apply the property ornullfor system properties- Since:
- 3.2.0
-
-
Method Details
-
getConsole
Description copied from class:LoggingSystemPropertiesReturns theConsoleto use.- Overrides:
getConsolein classLoggingSystemProperties- Returns:
- the
Consoleto use
-
apply
protected void apply(@Nullable LogFile logFile, org.springframework.core.env.PropertyResolver resolver) - Overrides:
applyin classLoggingSystemProperties
-