Answer the question
In order to leave comments, you need to log in
How to log from lua to nginx?
There is logic written in lua, it works in nginx using HttpLuaModule.
How to log what is happening? The examples use something like ngx.log(ngx.ERR, "Error to get server number: ", err)
Works great. For debugging - in one log all the information.
There are different log levels. But... I can only see errors. How to write INFO log?
Answer the question
In order to leave comments, you need to log in
This is ?
wiki.nginx.org/HttpLuaModule#log_by_lua + wiki.nginx.org/HttpLuaModule#Nginx_log_level_constants
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question