Conditional logging

Igor Sysoev is at rambler-co.ru
Thu Jul 19 23:54:30 MSD 2007


On Thu, Jul 19, 2007 at 02:41:52PM -0400, Paul Dlug wrote:

> On 7/19/07, Kiril Angov <kupokomapa at gmail.com> wrote:
> 
> >location ~* ^.+\.(jpg|jpeg|gif)$ {
> >     root         /spool/www;
> >     *access_log   off;*
> >     expires      30d;
> >}
> 
> I guess with this I could have it test a specific URL and exclude
> that. I still have other reasons for needed conditional logging
> though, specifically for the UserID module, I want to create a log
> file that only stores results that have the $userid_got variable set.

Currently it's not possible, because "if" executes before $userid_got is set.


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





More information about the nginx mailing list