Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1662

PatternLayout: provide conversion keyword to access LoggingEvent#getSequenceNumber

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-beta0
    • Fix Version/s: 1.3.0
    • Component/s: logback-classic
    • Labels:
      None

      Description

      Starting with Logback 1.3 a sequenceNumberGenerator can be added to the LoggerContext to assign a unique sequence number to logging events as soon as they are created. This sequence number is stored within the logging event and can be accessed using the new getSequenceNumber() method.

      Unfortunately there is apparently now way to refer to that sequence number in a PatternLayout - at least I could no find the corresponding conversion keyword.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ceki Ceki Gülcü
              Reporter:
              brenuart Bertrand Renuart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: