Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 96199 invoked by uid 500); 22 Jul 2002 15:21:55 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 96186 invoked from network); 22 Jul 2002 15:21:55 -0000 Message-ID: <3D3C2316.2E73F0CC@Golux.Com> Date: Mon, 22 Jul 2002 11:21:58 -0400 From: Rodent of Unusual Size Organization: The Apache Software Foundation X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Apache Developers Subject: Envariables for logging phase only Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Someone brought up an interesting question on #apache: 'How can I log everything *except* 404s?' Obviously this can be done with piped logging, but I consider that a bit of a handwave. It appears that here really isn't any simple way to accomplish what seems to actually be a reasonable thing. It can be worked around with ErrorDocument and mod_rewrite, I think, but that too is a bag on the side. So, unless someone has a solution I'm missing, I'd like to propose adding a sort of pseudo-envariable during the logging phase. Something like 'status_is_NNN', where NNN is appropriately substituted. Then something like CustomLog logs/access_log combined env=!status_is_404 It doesn't immediately help the case of someone who wants to log (or not log) some combination of status values, though, which is one reason I'm just throwing this out as a straw man idea.. -- #ken P-)} Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/ Author, developer, opinionist http://Apache-Server.Com/ "Millennium hand and shrimp!"