This is a CXF topic and actually doesn't belong here. That ID value of the CXF logging interceptor is incremented not per route but for all the CXF configurations so that each logged message gets a unique ID.
So this is what it should be. I don't know your purpose of getting this message count value in the log. If you just need to determine the number of messages going through each cxf interceptor chain or camel route, you can use the jmx feature of CXF. http://cxf.apache.org/docs/jmx-management.html or camel, respectively http://camel.apache.org/camel-jmx.html regards, aki 2013/4/19 dkum003 <dhananjay.ku...@amadeus.com> > Hello, > > I am facing a problem when it comes to how CXF LoggingInInterceptor is > logging every webservice call in my camel route. > > For each webservice call i do, the reply received from the webservice is > logged in my console like this > > *10:38:04,877 | SAMPLE | BLRMSADASHIVA | INFO | 1-133 | > o.a.c.s.F.F.DefaultSEI | | Inbound Message > ---------------------------- > ID: 1 > Response-Code: 200 > Encoding: UTF-8 > Content-Type: text/xml;charset=utf-8 > Headers: {content-type=[text/xml;charset=utf-8], Date=[Fri, 19 Apr 2013 > 10:38:09 GMT], Server=[Apache-Coyote/1.1], transfer-encoding=[chunked]} > Payload: > * > After the call to the webservice my processing is finished and hence i > close the camel route using a shutdown strategy. When the route re-runs > later anytime the logging happens as below > > *10:38:04,877 | SAMPLE | BLRMSADASHIVA | INFO | 1-133 | > o.a.c.s.F.F.DefaultSEI | | Inbound Message > ---------------------------- > ID: 2 > Response-Code: 200 > Encoding: UTF-8 > Content-Type: text/xml;charset=utf-8 > Headers: {content-type=[text/xml;charset=utf-8], Date=[Fri, 19 Apr 2013 > 10:38:09 GMT], Server=[Apache-Coyote/1.1], transfer-encoding=[chunked]} > Payload: * > > The ID should start again from 1 but it goes on to be incremental. > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/CXF-LoggingInInterceptor-logs-ID-incrementally-tp5731141.html > Sent from the Camel - Users mailing list archive at Nabble.com. >