Logging the Request and Response messages.