Package org.apache.logging.log4j.util
Class PropertiesUtil.Environment
java.lang.Object
org.apache.logging.log4j.util.PropertiesUtil.Environment
- Enclosing class:
PropertiesUtil
Provides support for looking up global configuration properties via environment variables, property files,
and system properties, in three variations:
Normalized: all log4j-related prefixes removed, remaining property is camelCased with a log4j2 prefix for property files and system properties, or follows a LOG4J_FOO_BAR format for environment variables.
Legacy: the original property name as defined in the source pre-2.10.0.
Tokenized: loose matching based on word boundaries.
- Since:
- 2.10.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ThreadLocal<PropertySource> private final Set<PropertySource> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddPropertySource(PropertySource propertySource) private booleancontainsKey(String key) private Stringprivate voidremovePropertySource(PropertySource propertySource) private booleansourceContainsProperty(PropertySource source, String key) private StringsourceGetProperty(PropertySource source, String key)
-
Field Details
-
sources
-
CURRENT_PROPERTY_SOURCE
-
-
Constructor Details
-
Environment
-
-
Method Details
-
addPropertySource
-
removePropertySource
-
get
-
sourceContainsProperty
-
sourceGetProperty
-
containsKey
-