Forum: NGINX Conditional error logging

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
mike (Guest)
on 2008-10-29 11:16
(Received via mailing list)
Is there any way this could be implemented?

Perhaps some way to say

error_log off;


error_log /var/log/debug.log debug;

but inside of specific server {} or location {} or even if {} blocks?

sometimes I want to debug only one site, and turning on debugging for
the whole server is almost impossible to view/understand.

also, I want to ignore errors when a certain host is accessing (a dumb
load balancer) - that's when I would appreciate an "off" option...

I was able to do this pretty easily in lighttpd (at least the
conditional debugging); not sure if nginx can support this, and if it
-can- support it in the future?
This topic is locked and can not be replied to.