Class SpringPropertySource
- java.lang.Object
-
- org.apache.logging.log4j.spring.boot.SpringEnvironmentHolder
-
- org.apache.logging.log4j.spring.boot.SpringPropertySource
-
- All Implemented Interfaces:
org.apache.logging.log4j.util.PropertySource
public class SpringPropertySource extends SpringEnvironmentHolder implements org.apache.logging.log4j.util.PropertySource
Returns properties from Spring.
-
-
Constructor Summary
Constructors Constructor Description SpringPropertySource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsProperty(String key)intgetPriority()System properties take precendence followed by properties in Log4j properties files.StringgetProperty(String key)-
Methods inherited from class org.apache.logging.log4j.spring.boot.SpringEnvironmentHolder
getEnvironment
-
-
-
-
Constructor Detail
-
SpringPropertySource
public SpringPropertySource()
-
-
Method Detail
-
getPriority
public int getPriority()
System properties take precendence followed by properties in Log4j properties files. Spring properties follow.- Specified by:
getPriorityin interfaceorg.apache.logging.log4j.util.PropertySource- Returns:
- This PropertySource's priority.
-
getProperty
public String getProperty(String key)
- Specified by:
getPropertyin interfaceorg.apache.logging.log4j.util.PropertySource
-
containsProperty
public boolean containsProperty(String key)
- Specified by:
containsPropertyin interfaceorg.apache.logging.log4j.util.PropertySource
-
-