@Plugin(name="java", category="Lookup") public class JavaLookup extends AbstractLookup
Modifier and Type | Field and Description |
---|---|
private SystemPropertiesLookup |
spLookup |
Constructor and Description |
---|
JavaLookup() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHardware()
Accessible through the Lookup key
hw . |
java.lang.String |
getLocale()
Accessible through the Lookup key
locale . |
java.lang.String |
getOperatingSystem()
Accessible through the Lookup key
os . |
java.lang.String |
getRuntime()
Accessible through the Lookup key
runtime . |
private java.lang.String |
getSystemProperty(java.lang.String name) |
private java.lang.String |
getSystemProperty(java.lang.String prefix,
java.lang.String name) |
java.lang.String |
getVirtualMachine()
Accessible through the Lookup key
vm . |
java.lang.String |
lookup(LogEvent event,
java.lang.String key)
Looks up the value of the environment variable.
|
lookup
private final SystemPropertiesLookup spLookup
public java.lang.String getHardware()
hw
.public java.lang.String getLocale()
locale
.public java.lang.String getOperatingSystem()
os
.public java.lang.String getRuntime()
runtime
.private java.lang.String getSystemProperty(java.lang.String name)
private java.lang.String getSystemProperty(java.lang.String prefix, java.lang.String name)
public java.lang.String getVirtualMachine()
vm
.public 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