httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] Disabling logging based on envariable
Date Fri, 15 Aug 1997 21:54:33 GMT
Rob's example, and Ken's both add directives.  As usual I disagree with
that :)  My suggestion:

CustomLog logs/kaboom "%h - %u %t \"%r\" %s %b" !that_bloody_robot_again

That is, CustomLog takes a log filename, a log format string, and an
optional environment variable that must be present (or not present).  This
isn't a lot more work.

Dean

On Fri, 15 Aug 1997, Randy Terbush wrote:

> 
> > >Assuming this patch doesn't disable logging to specific logs, how about
> > >something like this..
> > >
> > ><Logfile>
> > >	LogFormat "%h - %u %t \"%r\" %s %b"
> > >	LogUnless env=that_bloody_robot_again
> > ></Logfile>
> > >
> > ><Logfile>
> > >	CustomLog logs/kaboom "%h - %u %t \"%r\" %s %b \"\" \"%{User-agent}i\""
> > >	LogIf status>=500
> > ></Logfile>
> > >
> > ><Logfile>
> > >	CustomLog logs/referer "%{referer}i -> %U"
> > >	LogIf env=referer_exists
> > >	LogUnless env=referer_is_not_local
> > ></Logfile>
> > 
> >     Very nice - but a *lot* more work.  Can we reserve this for a future
> >     (2.0?) iteration?
> > 
> >     #ken    :-)}
> 
> Not a -1, BUT...
> 
> Anything we put out there, we are somewhat obligated to maintain 
> some backward compatibility. Would it be worth putting off to be 
> able to do it as RobH suggests. Very clean example Rob.
> 
> 
> 
> 


Mime
View raw message