Hi Camel does not control the logging format. Its done by the logging library used in EAP. So you need to contract JBoss how to configure logging for a format you want. If you have a support contract for JBoss EAP then you can also use that to get assistance.
On Fri, May 20, 2022 at 2:47 PM Sen, Surjit (CCI-Atlanta) <surjit....@cox.com> wrote: > > Hi, > Please provide some advice on the following issue > Existing project built with > JBoss EAP6 + JDK1.8 + Camel 2.18.4 > The Java DSL statement > > .log(LoggingLevel.INFO, com.xxx.xxx.xxx.camel.route.XXXRoute.class.getName(), > "Total items updated: 0") > > gets logged to specified log file(s) with the specified format as shown below > > 2022-05-18 13:45:27,453 GMT INFO [com.xxx.xxx.xxx.camel.route.XXXRoute] > (JmsGroupQueue:YYYQueue-2|E:7afba2fa-ea2f-4a74-a671-fc5ec4cd5cd0|R:baycKhC1ZxheRF7c) > Total items updated: 0 > > However on migration to > JBoss EAP7 + JDK11 + Camel 2.25.4 > > 2022-05-18 13:45:00,039 GMT INFO [stdout] (Camel (StandardContext) thread #8 > - > JmsConsumer[YYYQueue]|E:6a60df5a-cd74-43db-b89c-43ba9c90313c|R:SkbyDK-1pPheLUvc) > 2022-05-18 13:45:00,039 [kbyDK-1pPheLUvc] INFO XXXRoute - Total items > updated: 0 > > Please suggest how to get the .log to use the right format. Format used for > all loggers: > > %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %m%n -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2