Disable access logging?

Rob Schultz rschultz7 at gmail.com
Fri Jan 8 08:48:32 MSK 2010

I would presume because you would never really want error_log turned off. You would probably always want to see if errors are happening. If you are getting lots of errors and you don't mind them just change the level of error logging. 

On the other hand sometime you don't need access logging in certain parts of your config like favicon.ico or maybe you don't want access logging on all your image or css files only your main url's getting accessed. 

Rob Schultz
On Jan 7, 2010, at 10:56 PM, Dennis J. wrote:

> On 01/08/2010 04:42 AM, Steve wrote:
>> -------- Original-Nachricht --------
>>> Datum: Thu, 07 Jan 2010 22:32:17 -0500
>>> Von: "SnakeV"<nginx-forum at nginx.us>
>>> An: nginx at nginx.org
>>> Betreff: Disable access logging?
>>> Hello,
>>> How can disable access_logs in nginx, i have a site with a lot of request
>>> and access_log increments a lot of GB daily.
>> How about reading documentation?
>> access_log off;
>> http://wiki.nginx.org/NginxHttpLogModule#access_log
> Why is it that "access_log off" turns off logging but "error_log off" creates a logfile "off"? This seems very inconsistent to me and a trap a user can *very* easily fall into if he's not familiar with this quirky behaviour.
> Regards,
>  Dennis
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx

More information about the nginx mailing list