-
Feb 18th, 2008, 09:50 AM
#1
Displaying request and response in debug logging mode
Hi,
Until now, when I put logging in debug mode, Spring-WS would display the request and response xml. Suddenly, it doen't anymore. Now, it displays something like :
Received response [SaajSoapMessage {http://www.acme.com/MYWS}myOperation_out] for request [SaajSoapMessage {http://www.acme.com/MYWS}myOperation]
Does anyone has an idea about how to get it display the full xml request and response again ?
-
Feb 19th, 2008, 04:50 AM
#2
You should set your log level to TRACE, rather than DEBUG.
-
Feb 19th, 2008, 12:06 PM
#3
Thanks for the advice, but it doesn't change anything. I never used TRACE before, and I am absolutely sure Spring WS was displaying the XML request and response when in DEBUG mode. It has now changed, and I do not now why. It's rather confusing !
-
Feb 20th, 2008, 08:11 AM
#4
After investigating, I found that TRACE level in log4j is only enabled if threshold="all" is used in the configuration element. So the problem is solved.
However, I am absolutely sure I had the complete request and response displayed in DEBUG mode until few days ago ! The same is true with Castor marshalling. Strange !
-
Feb 26th, 2008, 06:43 AM
#5
Log4j introduced the TRACE level only recently. As such, some older implementations of commons logging are not aware of it. Make sure you use commons logging 1.1 or higher.
-
Mar 2nd, 2008, 12:24 PM
#6
Thank you very much. It's working fine now !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules