'Nginx lua log location

The Nginx lua module has a logging method:

 ngx.log(ngx.NOTICE, "hello world")

However, the docs don't indicate where this is logged to. Does it depend on the level param, ie ngx.ERROR would be in error log, while ngx.NOTICE would be in access log? Or some other file that needs to be configured?

I've added a log with ngx.INFO and not seeing anything appear in the logs folder.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source