Hello!
On Wed, Dec 10, 2014 at 5:58 PM, Martin Gee wrote:
> My question, can we define our own log format while logging via ngx.log
> .... (syslog)?
>
Well, ngx.log() is for error logging. And it just invokes nginx core's
error logger, which does not support custom format, unlike the access
logging.
On suggestion is to use nginx's access logger for this or just use
lua-resty-logger-socket with which you have the maximum freedom:
https://github.com/cloudflare/lua-resty-logger-socket
Regards,
-agentzh