title: RestTemplate logging POST data
body: <p>my resttemplate.exchange() failed on a POST request, with the server returning a 500 error.</p>
  
  <p>I tried to set the root logging level to DEBUG, but nothing was logged before the 500 error was returned. to make sure that my logging config is right, I added a line before the resttemplate call</p>
  
  <pre><code>HttpClient client = new DefaultHttpClient();
  client.execute(new HttpGet("http://google.com"));
  </code></pre>
  
  <p>in this case indeed a lot of logging messages appeared.</p>
  
  <p>so how can I make RestTemplate export the debugging data?</p>
  
  <p>Thanks
  Yang</p>