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

PatternLayout: provide conversion keyword to access LoggingEvent#getSequenceNumber

    XMLWordPrintable

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.0
    • 1.3.0-beta0
    • logback-classic
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: