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

Add pattern converter for thread id and priority in PatternLayout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.6
    • Core, Pattern Converters
    • 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

            ggregory Gary D. Gregory
            rpopma Remko Popma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: