java - How to log messages in Camel Spring DSL? -


i'm using camel 2.9.2 , defined oncompletion route follow:

            <oncompletion onfailureonly="true">             <log message="nack on failure:status=$simple{header.cxackstatus}:error=$simple{header.cxackerror}" logginglevel="debug"/>             <process ref="ackmessageprocessor" />             <to uri="file://{{file.writer.dir}}"/>                                  </oncompletion> 

provided in
https://stackoverflow.com/questions/18877562/how-can-i-log-a-header-value-in-camel-using-spring-dsl solution reason doesn't work me.

i can see camel traces relating route definition line 5309: 2017-07-28 11:14:53,830 debug [thread-11] (routeservice.java:311) - starting child service on route: writingroute -> oncompletionprocessor[unitofwork(unitofwork(routecontextprocessor[pipeline[[channel[log(writingroute)[nack on failure:status=$simple{header.cxackstatus}:error=$simple{header.cxackerror}]], channel[sendto(endpoint[log://'ack on success:status=$simple{header.cxackstatus}:error=$simple{header.cxackerror}' ])], there no actual logged message header values found...

is else need configure.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -