Hello!
I've started the "logging" branch in ngx_lua's repository and applied
the patch from Matthieu Tourne to add more debug information to the
error.log messages produced by both ngx.log() and print():
https://github.com/chaoslawful/lua-nginx-module/commits/logging/
Now the messages produced by ngx.log() used in content_by_lua will
look like this:
2012/05/22 13:52:11 [error] 55813#0: *1 [lua] [string
"content_by_lua"]:7: bar(): hello, log12343.14159
or like this when used in content_by_lua_file:
2012/05/22 13:52:53 [error] 56651#0: *1 [lua] test.lua:6: bar():
hello, log12343.14159
The function name given here may be empty when the current calling Lua
function is a tail-call.
Comments welcome!
Thanks!
-agentzh