# Log module

**URL:** <https://www.ruby-forum.com/t/log-module/225477>\
**Category:** NGINX\
**Created:** [January 10, 2013, 9:49am UTC](https://www.ruby-forum.com/t/log-module/225477 "2013-01-10T09:49:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [January 10, 2013, 9:49am UTC](https://www.ruby-forum.com/t/log-module/225477/1 "2013-01-10T09:49:52Z")

</div>

hello:  
when i using the log module to write the acess\_log.there are three  
set-cookie line in reponse hearders, But the log module only writes  
the first set-cookie of response headers into log.  
here is my log\_format:  
log\_format main '$remote\_addr - $remote\_user [$time\_local]  
“$request” ’  
'$status $body\_bytes\_sent “$http\_referer” ’  
'"$http\_user\_agent" “$http\_x\_forwarded\_for” $upstream\_addr ’  
‘$http\_cookie $request\_time set\_cookie=$sent\_http\_set\_cookie’;
