You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2014/09/22 16:30:33 UTC

[jira] [Resolved] (LOG4J2-848) Add a Java lookup to provide nicely formatted runtime version information

     [ https://issues.apache.org/jira/browse/LOG4J2-848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory resolved LOG4J2-848.
---------------------------------
    Resolution: Fixed

In master.

> Add a Java lookup to provide nicely formatted runtime version information
> -------------------------------------------------------------------------
>
>                 Key: LOG4J2-848
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-848
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Lookups
>         Environment: 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"
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>             Fix For: 2.1
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org