httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@organic.com>
Subject Re: Feature request
Date Sun, 22 Dec 1996 04:08:34 GMT
On Fri, 20 Dec 1996, Rob Hartill wrote:
> from bugs mail..
> 
> We could do with a way to specify when a CustomLog is written to, e.g.
> only log 404 requests or all error response.
> 
> At the moment it logs every request so doesn't make a good tool
> to capture additional error info (Referer, User-Agent ...).
> 
> perhaps something like
> 
> CustomLog logs/dodgy_links  "\%"r\" %404{Referer}" for 404
> CustomLog logs/redirected   "%r" for 30(1|2)

First: a better error logging mechanism is really what we need.  Standardized
error messages, error logging levels, etc.

Second: you can conditionalize when to log a variable:

  %400,501{User-agent}i

only logs the user-agent header on a 400 or 501 response.  That should be close
enough.

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS


Mime
View raw message