Hello!
2014-11-06 5:45 GMT-08:00 Wu Bin:
> 用了一段OPENRESTY了
> 在写LUA的时候,要么用ngx.say,要么用ngx.log进行调试
> 但我发现很多Samples都用到了print
> 我想知print到底是输出到哪了,在哪能看到print出来的内容
> 谢谢
>
https://github.com/openresty/lua-nginx-module#print
"Writes argument values into the nginx error.log file with the
ngx.NOTICE log level.
It is equivalent to
ngx.log(ngx.NOTICE, ...)"
如果你从未在你的 nginx 错误日志文件里看过 notice 级别的消息,则说明你的 nginx.conf 中配置的 error_log
指令里的过滤级别可能过高而需要调整了。
Regards,
-agentzh