Log request and response to trace log.