Class StructuredDataLookup
java.lang.Object
org.apache.logging.log4j.core.lookup.AbstractLookup
org.apache.logging.log4j.core.lookup.StructuredDataLookup
- All Implemented Interfaces:
StrLookup
Looks up keys from
StructuredDataMessage
log messages.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.logging.log4j.core.lookup.AbstractLookup
evaluate, lookup
-
Field Details
-
ID_KEY
Key to obtain the id of a structured message.- See Also:
-
TYPE_KEY
Key to obtain the type of a structured message.- See Also:
-
-
Constructor Details
-
StructuredDataLookup
public StructuredDataLookup()
-
-
Method Details
-
lookup
Looks up the value for the key using the data in the LogEvent.- Parameters:
event
- The current LogEvent.key
- The key to be looked up, may be null.- Returns:
- The value associated with the key.
-