Class JavaLookup
- java.lang.Object
-
- org.apache.logging.log4j.core.lookup.AbstractLookup
-
- org.apache.logging.log4j.core.lookup.JavaLookup
-
- All Implemented Interfaces:
StrLookup
@Plugin(name="java", category="Lookup") public class JavaLookup extends AbstractLookup
Looks up keys related to Java: Java version, JRE version, VM version, and so on.
-
-
Constructor Summary
Constructors Constructor Description JavaLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHardware()Accessible through the Lookup keyhw.StringgetLocale()Accessible through the Lookup keylocale.StringgetOperatingSystem()Accessible through the Lookup keyos.StringgetRuntime()Accessible through the Lookup keyruntime.StringgetVirtualMachine()Accessible through the Lookup keyvm.Stringlookup(LogEvent event, String key)Looks up the value of the environment variable.-
Methods inherited from class org.apache.logging.log4j.core.lookup.AbstractLookup
lookup
-
-
-
-
Method Detail
-
getHardware
public String getHardware()
Accessible through the Lookup keyhw.- Returns:
- hardware processor information.
-
getLocale
public String getLocale()
Accessible through the Lookup keylocale.- Returns:
- system locale and file encoding information.
-
getOperatingSystem
public String getOperatingSystem()
Accessible through the Lookup keyos.- Returns:
- operating system information.
-
getRuntime
public String getRuntime()
Accessible through the Lookup keyruntime.- Returns:
- Java Runtime Environment information.
-
getVirtualMachine
public String getVirtualMachine()
Accessible through the Lookup keyvm.- Returns:
- Java Virtual Machine information.
-
-