- All Implemented Interfaces:
StrLookup
Looks up keys from resource bundles.
-
Field Summary
Fields inherited from interface org.apache.logging.log4j.core.lookup.StrLookup
CATEGORY
-
Constructor Summary
Constructors
-
Method Summary
Looks up the value for the key in the format "BundleName:BundleKey".
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
-
ResourceBundleLookup
public ResourceBundleLookup()
-
Method Details
-
lookup
Looks up the value for the key in the format "BundleName:BundleKey".
For example: "com.domain.messages:MyKey".
- Parameters:
key
- the key to be looked up, may be null
ignored
- The current LogEvent.
- Returns:
- The value associated with the key.