Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 18811 invoked from network); 1 Feb 2010 21:38:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 21:38:40 -0000 Received: (qmail 81407 invoked by uid 500); 1 Feb 2010 21:38:39 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 81329 invoked by uid 500); 1 Feb 2010 21:38:39 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 81319 invoked by uid 99); 1 Feb 2010 21:38:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 21:38:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 21:38:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 41F2123888EC; Mon, 1 Feb 2010 21:38:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r905420 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/mod_log_config.xml modules/loggers/mod_log_config.c Date: Mon, 01 Feb 2010 21:38:16 -0000 To: cvs@httpd.apache.org From: minfrin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100201213816.41F2123888EC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: minfrin Date: Mon Feb 1 21:38:15 2010 New Revision: 905420 URL: http://svn.apache.org/viewvc?rev=905420&view=rev Log: mod_log_config: Add the R option to log the handler used within the request. Submitted by: Christian Folini Modified: httpd/httpd/trunk/CHANGES httpd/httpd/trunk/docs/manual/mod/mod_log_config.xml httpd/httpd/trunk/modules/loggers/mod_log_config.c Modified: httpd/httpd/trunk/CHANGES URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=905420&r1=905419&r2=905420&view=diff ============================================================================== --- httpd/httpd/trunk/CHANGES [utf-8] (original) +++ httpd/httpd/trunk/CHANGES [utf-8] Mon Feb 1 21:38:15 2010 @@ -2,6 +2,9 @@ Changes with Apache 2.3.6 + *) mod_log_config: Add the R option to log the handler used within the + request. [Christian Folini ] + *) Allow fine control over the removal of Last-Modified and ETag headers within the INCLUDES filter, making it possible to cache responses if desired. Fix the default value of the SSIAccessEnable directive. Modified: httpd/httpd/trunk/docs/manual/mod/mod_log_config.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_log_config.xml?rev=905420&r1=905419&r2=905420&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_log_config.xml (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_log_config.xml Mon Feb 1 21:38:15 2010 @@ -159,6 +159,9 @@ %r First line of request + %R + The handler generating the response (if any). + %s Status. For requests that got internally redirected, this is the status of the *original* request --- %>s @@ -267,6 +270,11 @@ format provided by mod_logio will log the actual number of bytes sent over the network.

+

Note: mod_cache is implemented as a + quick-handler and not as a standard handler. Therefore, the + %R format string will not return any handler + information when content caching is involved.

+
Examples Modified: httpd/httpd/trunk/modules/loggers/mod_log_config.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/loggers/mod_log_config.c?rev=905420&r1=905419&r2=905420&view=diff ============================================================================== --- httpd/httpd/trunk/modules/loggers/mod_log_config.c (original) +++ httpd/httpd/trunk/modules/loggers/mod_log_config.c Mon Feb 1 21:38:15 2010 @@ -376,6 +376,11 @@ return pfmt(r->pool, r->status); } +static const char *log_handler(request_rec *r, char *a) +{ + return ap_escape_logitem(r->pool, r->handler); +} + static const char *clf_log_bytes_sent(request_rec *r, char *a) { if (!r->sent_bodyct || !r->bytes_sent) { @@ -1530,6 +1535,7 @@ log_pfn_register(p, "T", log_request_duration, 1); log_pfn_register(p, "U", log_request_uri, 1); log_pfn_register(p, "s", log_status, 1); + log_pfn_register(p, "R", log_handler, 1); } return OK;