-
Is your feature request related to a problem? Please describe. Describe the solution you'd like Describe alternatives you've considered |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Liudapeng To ignore the message field when using This example includes the <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
<providers>
<timestamp/>
<version/>
<logLevel/>
<loggerName/>
<message/>
<mdc/>
<stackTrace/>
</providers>
</encoder> And this example does NOT include the message provider. Therefore, the message field will NOT be written. <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
<providers>
<timestamp/>
<version/>
<logLevel/>
<loggerName/>
<mdc/>
<stackTrace/>
</providers>
</encoder> |
Beta Was this translation helpful? Give feedback.
-
@philsttr Ok, got it, thank you very much |
Beta Was this translation helpful? Give feedback.
Hi @Liudapeng
To ignore the message field when using
LoggingEventCompositeJsonEncoder
, do not configure themessage
json provider.This example includes the
message
provider. Therefore, the message field will be written.And this example does NOT include the message provider. Therefore, the message field will NOT be written.