pretty print request and response in log file