title: How to Log HttpRequest and HttpResponse in a file?
body: <p>Can anyone explain any techniques to log HttpRequest and HttpResponse in a file.</p>
  
  <p>We are using Spring MVC/Spring Rest.</p>
  
  <p>What we want is to intercept the request before it is processed and log it.
  Same way intercept the response before it is sent and log it.</p>
  
  <p>Thanks a lot in advance.</p>