Error log questions

Athan Dimoy foxx at freemail.gr
Wed Sep 5 09:33:12 MSD 2007


"Igor Sysoev" <is at rambler-co.ru> wrote in message 
news:20070905052441.GA1738 at rambler-co.ru...
> Does this work for you:
>
> error_log   main_error.log;
>
> http {
>    error_log   http_error.log;
>
>    server  {
>         server_name   one;
>         error_log     http_one_error.log;
>    }
>
>    server  {
>         server_name   two;
>         error_log     http_two_error.log;
>    }
>
>    server  {
>         server_name   three;
>         # will log in    http__error.log;
>    }


If I understand this right, when an error_log directive is missing from a 
context, it still logs in the parent one?
If that's the case, can I use something like "error_log /dev/null" inside 
each server context avoiding loging domain-specific errors in master error 
log?

Athan 







More information about the nginx mailing list