On Tue, Sep 18, 2012 at 01:52:59AM -0700, steven wrote: > ngx.log貌似是将日志写入nginx的log > 和普通的nginx log是混在一起的 > 我现在做的一个项目需要获取post请求中的内容,然后将内容写日志, > 所以希望能单独地写另一个日志,如根据时间来滚动的,2012091816.log > 请问,openresty目前能做到吗? 自己用 Lua 往文件里记就可以了。日志模块的话自己修改下这个或者另外写个吧。 https://github.com/lilydjwg/lualogging -- Best regards, lilydjwg Linux Vim Python 我的博客: http://lilydjwg.is-programmer.com/ -- A: Because it obfuscates the reading. Q: Why is top posting so bad?