httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] Script timings -- access.log
Date Wed, 05 Nov 2003 08:37:03 GMT
Boyle Owen wrote:
> 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.

I haven't tried it, but if the script store the times (start and end) in
environment variables. It should then be possible to include it in the
access log, by using %{SCRIPT_TIME_START}e %{SCRIPT_TIME_END}e in a custom
LogFormat directive.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message