Re: Camel Jbang & JSON Logging & ExchangeId as mdc/ndc?

2023-05-11 Thread Claus Ibsen
Hi You are welcome to investigate this and see if you can get MDC to work. You need to enable it first in Camel. And then find out how to map that to ECS layout in log4j. On Thu, May 11, 2023 at 8:59 AM Mikael Koskinen wrote: > Hi, > > I'm wondering if it would be possible to include

Camel Jbang & JSON Logging & ExchangeId as mdc/ndc?

2023-05-11 Thread Mikael Koskinen
Hi, I'm wondering if it would be possible to include ExchangeId into log messages when using Camel Jbang to run integration with JSON Logging? The idea is to be able to group the log messages by the exchange. Currently the ExchangeId is included in the "message" field when an error happens: