log to desired path

Kuroishi Mitsuo kuroishi at iij.ad.jp
Thu Jun 9 03:19:15 UTC 2016


Hi,

I'm developing a module that needs to log its status and result
to a file at an appropriate path. And it's preferred that the
log file contains only its own data.

This is a demand of our customer.

I come up with using fopen(3), fwrite(3) or something like that
in the module first.

Is this bad idea in terms of the NGINX module manner?

Is there any way using the access_log or error_log
directive to achieve the need.

Or please let me know if you know modules that can be used for
that.

Thanks in advance.

--
Kuroishi Mitsuo



More information about the nginx-devel mailing list