If you are using the default server.xml file, the entries are being written
using the "common" pattern.  This is defined as:

%h %l %u %t "%r" %s %b"

where %b is the number of bytes sent in the reponse, excluding headers.

According to the docs, there is no pattern attribute to record the total
time required to process the request.

-----Original Message-----
From: peter lin [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 12:32 PM
To: Tomcat Users List
Subject: Re: Log the amount of time taken to complete a request...



Hmm.... I think it's response time.  Here is more access log entries.

127.0.0.1 - - [03/May/2002:12:30:09 -0500] "GET /people.jsp HTTP/1.0"
200 20106
127.0.0.1 - - [03/May/2002:12:30:44 -0500] "GET /people.jsp HTTP/1.0"
200 7168
127.0.0.1 - - [03/May/2002:12:30:44 -0500] "GET /people.jsp HTTP/1.0"
200 7168
127.0.0.1 - - [03/May/2002:12:30:47 -0500] "GET /people.jsp HTTP/1.0"
200 7168
127.0.0.1 - - [03/May/2002:12:30:47 -0500] "GET /people.jsp HTTP/1.0"
200 7168
127.0.0.1 - - [03/May/2002:12:30:47 -0500] "GET /people.jsp HTTP/1.1"
200 20129
127.0.0.1 - - [03/May/2002:12:30:47 -0500] "GET /people.jsp HTTP/1.0"
200 20106
127.0.0.1 - - [03/May/2002:12:30:55 -0500] "GET /people.jsp HTTP/1.0"
200 20106
127.0.0.1 - - [03/May/2002:12:31:02 -0500] "GET /people.jsp HTTP/1.0"
200 8192
127.0.0.1 - - [03/May/2002:12:31:02 -0500] "GET /people.jsp HTTP/1.1"
200 20129
127.0.0.1 - - [03/May/2002:12:31:06 -0500] "GET /people.jsp HTTP/1.0"
200 20106

peter


Christopher Moon wrote:
> 
> I think that is the size in bytes of the request.  If I am wrong that
> would be excellent!
> 
> Thanks
> Chris
> 
> -----Original Message-----
> From: peter lin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 10:59 AM
> To: Tomcat Users List
> Subject: Re: Log the amount of time taken to complete a request...
> 
> I thought it already does in the access log.
> 
> 127.0.0.1 - - [11/Apr/2002:14:21:44 -0500] "GET
> /test.jsp?A=me&B=this&C=test HTTP/1.0" 200 17317
> 
> Isn't the number after 200 the response in milliseconds?
> 
> peter
> 
> Christopher Moon wrote:
> >
> > Good Morning,
> >
> > Is it possible for Tomcat to log the amount of taken to complete a
> > request.
> >
> > With Apache you can use %T in your custom log directive.  Is there
> > anything similar in Tomcat?
> >
> > Thanks
> > Chris
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to