How to log incoming request and response HTTP messages along with headers for my Spring REST services? I am using Spring 4 and Tomcat 7.
What is the best practice to log the above?
I checked logBack TeeFilter but the documentation advises to disable it in production machine. I am looking to setup something that I can use in production as well. Would like to log the request and response to a specific log file.
I have looked through stack overflow and there are different suggestion so not sure which is the best approach to take as of Spring 4.0