Class JavaLookup
java.lang.Object
org.apache.logging.log4j.core.lookup.AbstractLookup
org.apache.logging.log4j.core.lookup.JavaLookup
- All Implemented Interfaces:
StrLookup
Looks up keys related to Java: Java version, JRE version, VM version, and so on.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAccessible through the Lookup keyhw
.Accessible through the Lookup keylocale
.Accessible through the Lookup keyos
.Accessible through the Lookup keyruntime
.Accessible through the Lookup keyvm
.Looks up the value of the environment variable.Methods inherited from class org.apache.logging.log4j.core.lookup.AbstractLookup
evaluate, lookup
-
Constructor Details
-
JavaLookup
public JavaLookup()
-
-
Method Details
-
getHardware
Accessible through the Lookup keyhw
.- Returns:
- hardware processor information.
-
getLocale
Accessible through the Lookup keylocale
.- Returns:
- system locale and file encoding information.
-
getOperatingSystem
Accessible through the Lookup keyos
.- Returns:
- operating system information.
-
getRuntime
Accessible through the Lookup keyruntime
.- Returns:
- Java Runtime Environment information.
-
getVirtualMachine
Accessible through the Lookup keyvm
.- Returns:
- Java Virtual Machine information.
-
lookup
Looks up the value of the environment variable.- Parameters:
key
- the key to be looked up, may be nullignored
- The current LogEvent.- Returns:
- The value of the environment variable.
-