I finally found a way to do this in the right way. Most of the solution comes from How do I configure Spring and SLF4J so that I can get logging?
It seems there are two things that need to be done :
- Add the following line in log4j.properties :
log4j.logger.httpclient.wire=DEBUG
Read full article from java - Spring RestTemplate - how to enable full debugging/logging of requests/responses? - Stack Overflow
No comments:
Post a Comment