R
R
raiboon2014-11-26 19:01:12
Nginx
raiboon, 2014-11-26 19:01:12

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

1 answer(s)
S
Stanislav Chernov, 2014-11-27
@uinx

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 question

Ask a Question

731 491 924 answers to any question