Package org.springframework.boot.logging
Class LoggingSystemProperties
java.lang.Object
org.springframework.boot.logging.LoggingSystemProperties
- Direct Known Subclasses:
- LogbackLoggingSystemProperties
Utility to set system properties that can later be used by log configuration files.
- Since:
- 2.0.0
- Author:
- Andy Wilkinson, Phillip Webb, Madhura Bhave, Vedran Pavic, Robert Thornton, EddĂș MelĂ©ndez, Jonatan Ivanov
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionLoggingSystemProperties(Environment environment) Create a newLoggingSystemPropertiesinstance.LoggingSystemProperties(Environment environment, BiConsumer<String, String> setter) Create a newLoggingSystemPropertiesinstance.LoggingSystemProperties(Environment environment, Function<String, String> defaultValueResolver, BiConsumer<String, String> setter) Create a newLoggingSystemPropertiesinstance.
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidapply()final voidprotected voidapply(LogFile logFile, PropertyResolver resolver) protected Charsetprotected final voidsetSystemProperty(String name, String value) Set a system property.
- 
Constructor Details- 
LoggingSystemPropertiesCreate a newLoggingSystemPropertiesinstance.- Parameters:
- environment- the source environment
 
- 
LoggingSystemPropertiesCreate a newLoggingSystemPropertiesinstance.- Parameters:
- environment- the source environment
- setter- setter used to apply the property or- nullfor system properties
- Since:
- 2.4.2
 
- 
LoggingSystemPropertiespublic LoggingSystemProperties(Environment environment, Function<String, String> defaultValueResolver, BiConsumer<String, String> setter) Create a newLoggingSystemPropertiesinstance.- Parameters:
- environment- the source environment
- defaultValueResolver- function used to resolve default values or- null
- setter- setter used to apply the property or- nullfor system properties
- Since:
- 3.2.0
 
 
- 
- 
Method Details- 
getDefaultCharset
- 
applypublic final void apply()
- 
apply
- 
apply
- 
setSystemPropertySet a system property.- Parameters:
- name- the property name
- value- the value
 
 
-