-
I noticed that this PR has removed the ability to set providers (going from 7.2 to 7.4): However documentation still appears to have examples referencing setting providers: logstash-logback-encoder/stack-hash.md Line 292 in b1e7653 I am guessing this configuration is no longer applicable? Also for setting the ShortenedThrowableConverter we likely don't need to set them under a provider |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
LoggingEventCompositeJsonEncoder
If you want to use the <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
<providers>
... snip ... other providers
<stackTrace>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
... snip ... ShortenedThrowableConverter configuration
</throwableConverter>
</stackTrace>
</providers>
</encoder> LogstashEncoder
If you want to add additional providers to If you want to use the
|
Beta Was this translation helpful? Give feedback.
LoggingEventCompositeJsonEncoder
LoggingEventCompositeJsonEncoder
allows the<providers>
element. AndLoggingEventCompositeJsonEncoder
is what is being used in the documentation you referenced.If you want to use the
ShortenedThrowableConverter
with aLoggingEventCompositeJsonEncoder
, then you add thestackTrace
provider with athrowableConverter
element.