cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <glen.ma...@gmail.com>
Subject Re: how do I enable logging of the SOAP request and response in CXF in straight Java?
Date Tue, 10 Jun 2008 23:09:26 GMT

http://cwiki.apache.org/CXF20DOC/debugging.html -- the fourth shaded block
from the top?

HTH,
Glen


Gary Weaver wrote:
> 
> Hello again,
> 
> In Axis2 I was able to enable logging of the SOAP request and response 
> along with the headers using the following in log4j.properties:
> 
> log4j.logger.httpclient.wire.content=DEBUG #SOAP Request and Response
> log4j.logger.httpclient.wire.header=DEBUG #HTTP Headers
> 
> However, in CXF, when I turn on full debug logging in log4j.properties
> via:
> 
> log4j.rootCategory=DEBUG, ...
> 
> I did a search through the log produced after calling the service and 
> getting a response, but it appeared that the request and response were 
> not logged.
> 
> I then read at the following page how to configure the logging 
> interceptors using Spring:
> http://cwiki.apache.org/CXF20DOC/configuration.html
> 
> However, the examples were all using Spring, which is fine, but for this 
> simple test client, I was just using Java. Should I just switch to using 
> the Spring config to configure CXF to enable logging, or is there an 
> easy enough way to turn on logging either via log4j.properties (even 
> though I don't think there is, since I had it on full-force) or via Java 
> code?
> 
> Thanks in advance,
> 
> Gary
> 
> -- 
> Gary Weaver
> Internet Framework Services
> Office of Information Technology
> Duke University
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/how-do-I-enable-logging-of-the-SOAP-request-and-response-in-CXF-in-straight-Java--tp17764749p17766823.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message