@Plugin(name="env", category="Lookup") public class EnvironmentLookup extends AbstractLookup
| Constructor and Description |
|---|
EnvironmentLookup() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
lookup(LogEvent event,
java.lang.String key)
Looks up the value of the environment variable.
|
lookuppublic java.lang.String lookup(LogEvent event, java.lang.String key)
event - The current LogEvent (is ignored by this StrLookup).key - the key to be looked up, may be null