Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-848

Add a Java lookup to provide nicely formatted runtime version information

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • Lookups
    • None

    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.

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: