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:
-
Constructor Summary
ConstructorsConstructorDescriptionLogbackLoggingSystemProperties(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 Summary
Methods inherited from class org.springframework.boot.logging.LoggingSystemProperties
apply, apply, getDefaultCharset, getDefaultConsoleCharset, setSystemProperty
-
Constructor Details
-
LogbackLoggingSystemProperties
-
LogbackLoggingSystemProperties
Create a newLogbackLoggingSystemPropertiesinstance.- Parameters:
environment- the source environmentsetter- setter used to apply the property- Since:
- 2.4.3
-
LogbackLoggingSystemProperties
public LogbackLoggingSystemProperties(Environment environment, Function<String, String> defaultValueResolver, BiConsumer<String, 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
-
getDefaultFileCharset
Description copied from class:LoggingSystemPropertiesReturns the default file charset.- Overrides:
getDefaultFileCharsetin classLoggingSystemProperties- Returns:
- the default file charset
-
apply
- Overrides:
applyin classLoggingSystemProperties
-