httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Rodent of Unusual Size)
Subject Re: [PATCH] Disabling logging based on envariable
Date Fri, 15 Aug 1997 16:18:23 GMT
>From the fingers of Rob Hartill flowed the following:
>On Fri, 15 Aug 1997, Rodent of Unusual Size wrote:
>>      DoNotLogIf env=some_envariable
>Does that stop *all* logging ?, if so, then that's not what we need,
>we need to say "don't log to this file if env=something"

    It stops all logging in the scope where the DoNotLogIf occurred,
    yes.  Does this mean you're -1?  Or just -0?

>>     (I'm not happy with the directive name; suggestions welcome.)

    I like your "LogUnless" name better.

>Assuming this patch doesn't disable logging to specific logs, how about
>something like this..
>	LogFormat "%h - %u %t \"%r\" %s %b"
>	LogUnless env=that_bloody_robot_again
>	CustomLog logs/kaboom "%h - %u %t \"%r\" %s %b \"\" \"%{User-agent}i\""
>	LogIf status>=500
>	CustomLog logs/referer "%{referer}i -> %U"
>	LogIf env=referer_exists
>	LogUnless env=referer_is_not_local

    Very nice - but a *lot* more work.  Can we reserve this for a future
    (2.0?) iteration?

    #ken    :-)}

View raw message