Releases: logfellow/logstash-logback-encoder
Releases · logfellow/logstash-logback-encoder
logstash-logback-encoder-4.0
Changes in 4.0:
- New
CompositeJsonFormatter
/Encoder
/Layout
were created to allow customizing the JSON output through the use of providers.- Each provider contained within the composite contributes to the JSON output.
- All existing functionality was converted to individual providers
LogstashFormatter
/Encoder
/Layout
were refactored to be just extensions of the composite concept that contain a pre-defined set of providers
- A new pattern-based provider was added. This provider allows usage of standard
PatternLayout
patterns within a JSON template. This allows much easier configuration, since you can layout your JSON event as a JSON string with embedded patterns for values. - Added a new
AsyncDisruptorAppender
that is similar to logback'sAsyncAppender
, but uses an LMAX DisruptorRingBuffer
as the inter-thread data exchange mechanism (as opposed to aBlockingQueue
used by theAsyncAppender
)- Refactored the tcp appender to extend the
AsyncDisruptorAppender
so it can take advantage of the benefits of using aRingBuffer
- Refactored the tcp appender to extend the
- Add ability to define a prefix and suffix on the encoder/layouts that appear before/after the JSON output
- Lots of doc improvements
XML configuration is fully backwards compatible except for the following:
- The
queueSize
for the tcp appenders must now be a power of 2. Also, recommend you switch to usingringBufferSize
instead ofqueueSize
. - The
eventDelayLimit
for the tcp appenders is no longer used (since the the appender will never block the logging thread)