Forum: NGINX Conditional error logging

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F5a6ed477b109fe6acc11a5a8f87e7e8?d=identicon&s=25 mike (Guest)
on 2008-10-29 10:16
(Received via mailing list)
Is there any way this could be implemented?

Perhaps some way to say

error_log off;

or

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.