# Logging response body

**URL:** <https://www.ruby-forum.com/t/logging-response-body/219499>\
**Category:** NGINX\
**Created:** [May 4, 2012, 5:20pm UTC](https://www.ruby-forum.com/t/logging-response-body/219499 "2012-05-04T17:20:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 4, 2012, 5:20pm UTC](https://www.ruby-forum.com/t/logging-response-body/219499/1 "2012-05-04T17:20:14Z")

</div>

Hi,

I’m interested in adding some additional logging to some of our nginx  
proxy  
machines to make it easier to debug and monitor when things go wrong for  
users.

I’ve searched through the list and Google but couldn’t see any mention  
of a  
response body variable that I could use with a custom log format- is it  
possible already, or are there any modules that people have written to  
do  
the same?

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![Paul\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/6bbea6/32.png) [@Paul\_I](https://www.ruby-forum.com/u/Paul_I)\
**Post date:** [July 26, 2012, 11:58am UTC](https://www.ruby-forum.com/t/logging-response-body/219499/2 "2012-07-26T11:58:57Z")

</div>

I have the same question. Need kind of log with request info and  
response headers+body

Anyone?

Posted at Nginx Forum:

> **[Re: Logging response body](https://forum.nginx.org/read.php?2,226071,228997#msg-228997)**
>
> Hi, I'm interested in adding some additional logging to some of our nginx proxy machines to make it easier to debug and monitor when things go wrong for users. I've searched through the list and Google but couldn't see any mention of a response body...
