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

Add pattern converter for thread id and priority in PatternLayout

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: Core, Pattern Converters
    • Labels:
      None

      Description

      As requested here:
      http://stackoverflow.com/questions/14359044/display-thread-id-instead-thread-name-in-log

      Thread ID

      Use one of the following:

      • %T
      • %tid
      • %threadId

      Thread Priority

      Use one of the following:

      • %tp
      • %threadPriority

      This create creates an incompatibility for serialization because we now have two new LogEvent fields: thread ID and thread priority.

        Attachments

          Activity

            People

            • Assignee:
              garydgregory Gary Gregory
              Reporter:
              remkop@yahoo.com Remko Popma
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: