Lua Logging to a custom file

791 views
Skip to first unread message

David Santhosh

unread,
Jun 25, 2015, 3:41:10 PM6/25/15
to openre...@googlegroups.com
Is it possible to set up the lua module to log to a different file than the default nginx.log.

ngx.log and print sends the messages to nginx error.log, I want this to be changed and use my custom log file. Let me know if this doable.

Yichun Zhang (agentzh)

unread,
Jun 26, 2015, 12:06:10 AM6/26/15
to openresty-en
Hello!
This is an FAQ :)

http://openresty.org/faq.html#can-i-use-custom-loggers-in-lua

Let me know if you have any further questions.

Best regards,
-agentzh

davidsnt

unread,
Jun 26, 2015, 3:37:25 AM6/26/15
to openre...@googlegroups.com
Sorry I missed that. Thank you for pointing it.

--David


--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages