Download Latest Version logstash-logback-encoder-9.0 source code.tar.gz (324.7 kB)
Email in envelope

Get an email when there's a new version of Logstash Logback Encoder

Home / logstash-logback-encoder-7.3
Name Modified Size InfoDownloads / Week
Parent folder
logstash-logback-encoder-7.3.tar.gz 2023-02-20 312.4 kB
logstash-logback-encoder-7.3.zip 2023-02-20 595.7 kB
README.md 2023-02-20 11.3 kB
Totals: 3 Items   919.4 kB 0

This new version brings support for the new features introduced in Logback 1.3 while remaining compatible with both Logback 1.2 (can be used with both versions).

What's Changed

:warning: Update considerations and deprecations

When upgrading to Logback 1.3, people using one of the standard java.time.DateTimeFormatter formats like [ISO_OFFSET_DATE_TIME] (see documentation for more information) will have their timestamp rendered with nanoseconds instead of millis. If this is not desired you should instead configure the explicit format you need instead of making reference to one of the standard formats provided by java.time.DateTimeFormatter.

  • Add support for Event#getSequenceNumber (logback 1.3+) by @brenuart in https://github.com/logfellow/logstash-logback-encoder/pull/843 Starting from version 1.3 Logback can assign a unique sequence number to each event as long as the LoggerContext is configured with a SequenceNumberGenerator (see Logback). This number can later be retrieved from the event itself by calling the newly introduced getSequenceNumber() method.

The SequenceJsonProvider has been upgraded to leverage this new feature. The actual behaviour depends on which version of Logback is found on the class path at runtime: - Logback >= 1.3: get the sequence value from the event itself provided a SequenceNumberGenerator is defined in the LoggerContext. If not, revert to using a locally incremented sequence number (old behaviour) - Logback < 1.3: use a locally incremented sequence number (old behaviour)

If this behaviour is not desired, you have the choice to set your own custom strategy (see the documentation for more information).

:sparkles: New features and improvements

To enable this feature, set the new initialSendDelay property to the desired value. The default value is 0 which means "no delay", that is start flushing events immediately after the connection is established. See Initial Send Delay for more information.

:lady_beetle: Bug fixes

:book: Documentation, Tests and Build

:up: Dependency Upgrades

New Contributors

Full Changelog: https://github.com/logfellow/logstash-logback-encoder/compare/logstash-logback-encoder-7.2...logstash-logback-encoder-7.3

Source: README.md, updated 2023-02-20