- All Implemented Interfaces:
StrLookup
Looks up keys from environment variables.
-
Field Summary
Fields inherited from interface org.apache.logging.log4j.core.lookup.StrLookup
CATEGORY
-
Constructor Summary
Constructors
-
Method Summary
Looks up the value of the environment variable.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.core.lookup.StrLookup
evaluate
-
Constructor Details
-
EnvironmentLookup
public EnvironmentLookup()
-
Method Details
-
lookup
Looks up the value of the environment variable.
- Parameters:
key
- the key to be looked up, may be null
ignored
- The current LogEvent.
- Returns:
- The value of the environment variable.