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 boolean
containsProperty(String key)
int
getPriority()
System properties take precendence followed by properties in Log4j properties files.String
getProperty(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:
getPriority
in interfaceorg.apache.logging.log4j.util.PropertySource
- Returns:
- This PropertySource's priority.
-
getProperty
public String getProperty(String key)
- Specified by:
getProperty
in interfaceorg.apache.logging.log4j.util.PropertySource
-
containsProperty
public boolean containsProperty(String key)
- Specified by:
containsProperty
in interfaceorg.apache.logging.log4j.util.PropertySource
-
-