Correct, I realized after I posted.

I guess you'll have to get the source code for AccessLogValve and roll your own override...

I found this article via google "accesslogvalve tomcat source"

4th link:
http://www.devx.com/Java/Article/32730/1954 includes a source code archive and the example in the article shows milliseconds on the timestamp.

5th link:
http://www.docjar.com/html/api/org/apache/catalina/valves/AccessLogValve.java.html is tomcat 6 source and you quickly see what to look for in the code:

874           timeFormatter = new SimpleDateFormat("HH:mm:ss");

HTH

Dave

On Sep 16, 2008, at 2:27 PM, Jonathan Mast wrote:

Ah, but %D is the time taken to process the request in ms. It's not the
timestamp.

On Tue, Sep 16, 2008 at 3:14 PM, David Fisher <[EMAIL PROTECTED]>wrote:

It is. The docs are here:

http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html

I use

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="unity_access." suffix=".log"
pattern="%h %v %t %s %b %D %{RUNNING}c %r"/>

The "AccessLogValve" must be used and it is the %D spec that show
milliseconds.

Tomcat 5.5.x

Regards,
Dave


On Sep 16, 2008, at 11:39 AM, Jonathan Mast wrote:

Is it possible to obtain timestamps with millisecond precision in access
logs?  I don't see anything about specifying the date-time stamps on
AccessLogValve page and was wondering if there wasn't a way to get this
data.

Tomcat 5.5

Thanks



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to