httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sutton <p...@ukweb.com>
Subject Re: [PATCH] Disabling logging based on envariable
Date Fri, 15 Aug 1997 22:18:24 GMT
On Fri, 15 Aug 1997, Rodent of Unusual Size wrote:
>     A while ago I suggested that we rm mod_log_agent and
>     mod_log_referer, but Rob pointed out that the latter had
>     functionality that mod_log_config lacked: the ability to selectively
>     *not* log based upon the value of the Referer header field.

When I wrote the multi-logging code I had in mind removing the need for
the agent and referer log modules. Besides the RefererIgnore directive
there are a couple of more subtle differences as well. I can't remember
exactly now, but it's something like those modules don't log dashes for
unknown refers/agent - instead they just don't log anything (a bad move
because you cannot see the number of "unknown" agents or referers, but for
complete compat you'll need to do that as well).

Anyway, to implement RefererIgnore you need to be able to selectively log
to *the referer log* only. I think DoNotLogIf prevents logging to all
files in the same server config. What you really need is a sort of
"CustomLogIf" directive. I though about implementing that together with a
compatibility RefererIgnore directive, but decided against it at the time
because it adds yet another special purpose directive, and because I
always prefer the general over the specific. So I'd have liked to see the
functionality of being able to selectively ignore *any directive* based on
request-time environment variables. But of course that would be a
performance hit, and it was (probably rightly) abandoned when discussed
last month. 

//pcs



Mime
View raw message