Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC7B66AD5 for ; Tue, 24 May 2011 18:24:40 +0000 (UTC) Received: (qmail 63925 invoked by uid 500); 24 May 2011 18:24:39 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 63900 invoked by uid 500); 24 May 2011 18:24:39 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 63893 invoked by uid 99); 24 May 2011 18:24:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 18:24:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 18:24:30 +0000 Received: from [192.168.245.129] (p549E0B27.dip0.t-ipconnect.de [84.158.11.39]) by tor.combios.es (Postfix) with ESMTPA id 1541D2260D7 for ; Tue, 24 May 2011 20:24:09 +0200 (CEST) Message-ID: <4DDBF7C4.2060606@ice-sa.com> Date: Tue, 24 May 2011 20:24:04 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: mod_perl list User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: mod_perl list Subject: Re: Measuring response time Apache request References: <4DDBCF19.30605@gmail.com> <4DDBD1DB.60705@gmail.com> <4DDBDAC7.3020709@ice-sa.com> <201105241850.24732.torsten.foertsch@gmx.net> In-Reply-To: <201105241850.24732.torsten.foertsch@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Torsten F�rtsch wrote: > On Tuesday, May 24, 2011 18:20:23 Andr� Warnier wrote: >> Is it not easier to just read the Apache access log a posteriori, and >> filter the lines which you need ? >> With the appropriate LogFormat, you can have the microseconds needed >> for each request. > > With Apache2::ModLogConfig you can even install a Perl handler to be > called by CustomLog: > > > sub My::LogReceiver { > my ($r, $usec)=@_; > ... > } > > > CustomLog "@perl: My::LogReceiver" "%D" > > But Marco wanted PostReadRequest => Response not PostReadRequest => Log. > I know, but the difference is likely to be only a Muckeseckele, as they say around here. :-)