Class EventLookup
- java.lang.Object
-
- org.apache.logging.log4j.core.lookup.AbstractLookup
-
- org.apache.logging.log4j.core.lookup.EventLookup
-
- All Implemented Interfaces:
StrLookup
@Plugin(name="event", category="Lookup") public class EventLookup extends AbstractLookup
Looks up values from the log event.
-
-
Constructor Summary
Constructors Constructor Description EventLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
lookup(LogEvent event, java.lang.String key)
Looks up the value from the logging event.-
Methods inherited from class org.apache.logging.log4j.core.lookup.AbstractLookup
lookup
-
-
-
-
Method Detail
-
lookup
public java.lang.String lookup(LogEvent event, java.lang.String key)
Looks up the value from the logging event.- Parameters:
event
- The current LogEvent.key
- the key to be looked up.- Returns:
- The value of the specified log event field.
-
-