Loading... (original) (raw)

Log inSkip to main contentSkip to sidebar

QOS.ch JIRA

We are migrating this Jira service to Github. Issue creation is no longer possible on this server and must be done on Github. However, you may browse issues without an account. Editing or commenting on existing issues requires an account.

Please support SLF4J/logback/reload4j projects via Github donations and sponsorship.

Uploaded image for project: 'logback'

  1. logback
  2. LOGBACK-1662

PatternLayout: provide conversion keyword to access LoggingEvent#getSequenceNumber

XMLWordPrintable

Details

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

Votes:

0 Vote for this issue

Watchers:

2 Start watching this issue

Dates

Created:

16/Aug/22 22:07

Updated:

20/Aug/22 21:48

Resolved:

20/Aug/22 21:48