类 LoggingSystemProperties
java.lang.Object
org.springframework.boot.logging.LoggingSystemProperties
- 直接已知子类:
LogbackLoggingSystemProperties
Utility to set system properties that can later be used by log configuration files.
- 从以下版本开始:
- 2.0.0
- 作者:
- Andy Wilkinson, Phillip Webb, Madhura Bhave, Vedran Pavic, Robert Thornton, Eddú Meléndez, Jonatan Ivanov
- 另请参阅:
-
构造器概要
构造器构造器说明LoggingSystemProperties
(Environment environment) Create a newLoggingSystemProperties
instance.LoggingSystemProperties
(Environment environment, BiConsumer<String, String> setter) Create a newLoggingSystemProperties
instance.LoggingSystemProperties
(Environment environment, Function<String, String> defaultValueResolver, BiConsumer<String, String> setter) Create a newLoggingSystemProperties
instance. -
方法概要
修饰符和类型方法说明final void
apply()
final void
protected void
apply
(LogFile logFile, PropertyResolver resolver) protected Charset
protected final void
setSystemProperty
(String name, String value) Set a system property.
-
构造器详细资料
-
LoggingSystemProperties
Create a newLoggingSystemProperties
instance.- 参数:
environment
- the source environment
-
LoggingSystemProperties
Create a newLoggingSystemProperties
instance.- 参数:
environment
- the source environmentsetter
- setter used to apply the property ornull
for system properties- 从以下版本开始:
- 2.4.2
-
LoggingSystemProperties
public LoggingSystemProperties(Environment environment, Function<String, String> defaultValueResolver, BiConsumer<String, String> setter) Create a newLoggingSystemProperties
instance.- 参数:
environment
- the source environmentdefaultValueResolver
- function used to resolve default values ornull
setter
- setter used to apply the property ornull
for system properties- 从以下版本开始:
- 3.2.0
-
-
方法详细资料
-
getDefaultCharset
-
apply
public final void apply() -
apply
-
apply
-
setSystemProperty
Set a system property.- 参数:
name
- the property namevalue
- the value
-