Hi As you are using Servlet transport, I think you may consider to setup the log of web container. They you can get to whole picture of wire HTTP logs between the client and Camel Proxy.
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Friday, March 8, 2013 at 2:35 AM, rouble wrote: > Willem, Scott, Claus et al, > > Appreciate all your input. So, is there no "camel way" to get the logs > from the client to the camel proxy? Or do I have to look at the web > container (tomcat or Jetty) logs? > > Here is my topology: > Client<====>Camel Proxy<====>Remote Endpoint > > And my simple route: > from("servlet:///proxyWebService/api/?matchOnUriPrefix=true") > .to("https4://realWebService:8443/api/?bridgeEndpoint=true&throwExceptionOnFailure=false"); > > Adding .log() statements will get me the logs from camel proxy to the > remote endpoint. But not from the Client to the Camel Proxy. > > I would really like to generate all the wire HTTP logs within the > camel proxy itself. On the topic of stream caching, I want to be able > to turn on these wire HTTP logs at DEBUG level. Is it possibly to > programmatically enable stream caching and logging? > > Cheers > Rouble > > On Mon, Mar 4, 2013 at 8:47 PM, Willem jiang <willem.ji...@gmail.com > (mailto:willem.ji...@gmail.com)> wrote: > > If you are using Jetty, I think you can find out the HTTP log somewhere. > > And Scott just show you how to log the request and response message in the > > camel route. > > > > > > -- > > Willem Jiang > > > > Red Hat, Inc. > > FuseSource is now part of Red Hat > > Web: http://www.fusesource.com | http://www.redhat.com > > Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) > > (English) > > http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) > > Twitter: willemjiang > > Weibo: 姜宁willem > > > > > > > > > > On Tuesday, March 5, 2013 at 4:49 AM, rouble wrote: > > > > > [Re-viving old thread] > > > > > > So this shows the communication between the camel proxy box and the > > > remote endpoint. > > > > > > How do I see the HTTP logs between the client and the camel proxy box? > > > > > > Basically, the network topology is Client<=========>Camel > > > Proxy<===========>Remote Endpoint > > > > > > tia, > > > rouble > > > > > > > The following should allow you to see both: > > > > > > > > > > > > from("servlet:///proxyWebService/api/?matchOnUriPrefix=true") > > > > .log("Request message: ${body}") > > > > > > > > .to("https4://realWebService:8443/api/?bridgeEndpoint=true&throwExceptionOnFailure=false") > > > > .log("Response message: ${body}"); > > > > > > > > Hope this helps. > > > > > > > > Best Regards, > > > > Scott ES > > > > > > > > On Wed, Dec 5, 2012 at 4:38 PM, rouble <r.ou...@gmail.com > > > > (mailto:r.ou...@gmail.com)> wrote: > > > > > > > > > I have a camel route setup to proxy a web service as follows: > > > > > > > > > > from("servlet:///proxyWebService/api/?matchOnUriPrefix=true") > > > > > > > > > > .to("https4://realWebService:8443/api/?bridgeEndpoint=true&throwExceptionOnFailure=false"); > > > > > > > > > > How can I see the inbound and outbound HTTP Requests and Responses? I > > > > > don't need any other camel logs for my purpose just the wire logs. > > > > > > > > > > tia, > > > > > rouble > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > -- > > > > Scott England-Sullivan > > > > Apache Camel Committer > > > > Principal Consultant / Sr. Architect | Red Hat, Inc. > > > > FuseSource is now part of Red Hat > > > > Web: fusesource.com <http://www.fusesource.com> | > > > > redhat.com<http://www.redhat.com> > > > > Blog: sully6768.blogspot.com (http://sully6768.blogspot.com) > > > > Twitter: sully6768 > > > > > >