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, @Nullable BiConsumer<String, @Nullable String> setter) Create a newLogbackLoggingSystemProperties
instance.LogbackLoggingSystemProperties
(Environment environment, @Nullable Function<@Nullable String, @Nullable String> defaultValueResolver, @Nullable BiConsumer<String, @Nullable String> setter) Create a newLoggingSystemProperties
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply
(@Nullable LogFile logFile, PropertyResolver resolver) protected @Nullable Console
Returns theConsole
to use.Methods inherited from class org.springframework.boot.logging.LoggingSystemProperties
apply, apply, getDefaultConsoleCharset, getDefaultFileCharset, setSystemProperty
-
Constructor Details
-
LogbackLoggingSystemProperties
-
LogbackLoggingSystemProperties
public LogbackLoggingSystemProperties(Environment environment, @Nullable BiConsumer<String, @Nullable String> setter) Create a newLogbackLoggingSystemProperties
instance.- Parameters:
environment
- the source environmentsetter
- setter used to apply the property- Since:
- 2.4.3
-
LogbackLoggingSystemProperties
public LogbackLoggingSystemProperties(Environment environment, @Nullable Function<@Nullable String, @Nullable String> defaultValueResolver, @Nullable BiConsumer<String, @Nullable String> setter) Create a newLoggingSystemProperties
instance.- Parameters:
environment
- the source environmentdefaultValueResolver
- function used to resolve default values ornull
setter
- setter used to apply the property ornull
for system properties- Since:
- 3.2.0
-
-
Method Details
-
getConsole
Description copied from class:LoggingSystemProperties
Returns theConsole
to use.- Overrides:
getConsole
in classLoggingSystemProperties
- Returns:
- the
Console
to use
-
apply
- Overrides:
apply
in classLoggingSystemProperties
-