Hi there,
I have a need to write custom log files that would be completely separate from Nginx's error/access logs and would have a completely free format. I couldn't find a way to do that by simply configuring Nginx and using ngx.log.
I could implement a simple Lua solution that simply writes to a file but I'd like to be able to take advantage of Nginx log compression and rotation (with kill -USR1).
On Github (https://github.com/openresty/lua-nginx-module/issues/484), Yichun Zhang suggested using a socket-based logger like https://github.com/cloudflare/lua-resty-logger-socket (which could be used with syslog-ng, for instance). That sounds like a good and robust solution to me. Has anyone here already with these tools together? What solution do you guys use?
Thanks!
Jawad