Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 95649 invoked from network); 5 Nov 2003 08:37:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Nov 2003 08:37:37 -0000 Received: (qmail 6400 invoked by uid 500); 5 Nov 2003 08:37:09 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 6281 invoked by uid 500); 5 Nov 2003 08:37:08 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 6268 invoked from network); 5 Nov 2003 08:37:07 -0000 Received: from unknown (HELO host.linuxsv3.net) (69.56.174.13) by daedalus.apache.org with SMTP; 5 Nov 2003 08:37:07 -0000 Received: from c-67-160-219-187.client.comcast.net ([67.160.219.187] helo=dessent.net) by host.linuxsv3.net with asmtp (Exim 4.24) id 1AHJAC-00052y-5c for users@httpd.apache.org; Wed, 05 Nov 2003 00:37:17 -0800 Message-ID: <3FA8B6B8.6EFB8936@dessent.net> Date: Wed, 05 Nov 2003 00:37:12 -0800 From: Brian Dessent Organization: My own little world... X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,en-US MIME-Version: 1.0 To: users@httpd.apache.org References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.linuxsv3.net X-AntiAbuse: Original Domain - httpd.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dessent.net X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Script timings -- access.log X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Boyle Owen wrote: > > >-----Original Message----- > >From: Richard Correia [mailto:richard.correia@ugamsolutions.com] > > > >Is there a way so that I can log start time and end time of > >script being called in access.log. > > I don't know of any direct way to do this (AFAIK, "LogScriptStartTime > on" doesn't exist :-) > > The simple way would be to have the script do the logging - a couple of > "print" or "echo" statements at the start and end of the script would do > it... If you switch on ScriptLog and just write to STDOUT, the messages > will end up in the script log. He could also try the "%T" format specifier in a CustomLog statement, which represents the time in seconds that it took to serve the request. However this is pretty inaccurate given that it only has 1s resolution, and will be all but completely useless unless the request takes a fairly long time (more than a few seconds.) Brian --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org