disable logging altogether

Igor Sysoev is at rambler-co.ru
Tue Jul 31 15:27:14 MSD 2007


On Tue, Jul 31, 2007 at 01:57:15PM +0300, Boris Bartzitz wrote:

> is there a way to disable logging? i have multiple server sections
> (virtual hosts) and if i remove error_log and access_log directives
> from a server, logging goes to the main nginx log. these logs are huge
> and useless, so i need something like "error_log off" but i don't see
> anything like this in documentation.

I recomend to set globally
error_log   /path/to/log  crit;

Otherwise nginx will be as Windows - something is going wrong but
you do not why.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list