quarkiverse / quarkus-logging-json

Quarkus logging extension outputting the logging in json.
Apache License 2.0
63 stars 30 forks source link

Ignore some MDC fields #230

Closed Sukitly closed 1 year ago

Sukitly commented 1 year ago

Hi, I am new to this library. I got a question: What should I do to ignore some MDC fields when using ths library? Is there any way to do it now?

Thanks.

SlyngDK commented 1 year ago

@Sukitly No there is no filtering of MDC fields, but you can disable MDC logging, and implement your own https://github.com/quarkiverse/quarkus-logging-json#custom-log-handler.

All config options can be seen here https://quarkiverse.github.io/quarkiverse-docs/quarkus-logging-json/dev/index.html