Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T16:58:10-04:00)
Maven home: C:\Java\apache-maven-3.2.3
Java version: 1.7.0_67, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_67\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T16:58:10-04:00) Maven home: C:\Java\apache-maven-3.2.3 Java version: 1.7.0_67, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_67\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Description
Add a Java lookup to provide nicely formatted runtime version information:
Keys | Sample |
---|---|
java:version | Java version 1.7.0_67 |
java:runtime | Java(TM) SE Runtime Environment (build 1.7.0_67-b01) from Oracle Corporation |
java:vm | Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode) |
java:os | Windows 7 6.1 Service Pack 1, architecture: amd64-64 |
java:locale | default locale: en_US, platform encoding: Cp1252 |
java:hw | processors: 4, architecture: amd64-64, instruction sets: amd64 |
This is useful for apps that want to include operating information at the start of logs in layout headers.
The new class JavaLookup provides methods to create each String.