Yes and no.

No - because there isn't a parameter to do that.

yes- Because it can still be done. here's how.

1) write you own pattern that is just like the access log format
2) change %t to be %{time}r
3) Write a Servlet filter on all requests which after the chain is executed, save a attribute into the ServletRequest. Call the value "time" (or whatever you put in the {}). The value of "time" would be code you need to write to pull the current time and format it in the proper date format you desire.



-Tim


i i wrote:
dear all,

i have a question about the access logs. In the access
log date & time @ which the request it given is
printed. This is being printed by the pattern "%t" &
this is in CLF ( common log format) But i wud like
receive it as current milli sec.. is it possible ??


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to