Most likely - the response was a 3XX response. In which case - there is no body to send. (In particular look at 304 responses)

1) Setting timeFormat to a format not friendly to SimpleDateFormat will probably yeild bad results.

2) No

-Tim

Francis Galiegue wrote:

Hello list,

In order to obtain more information from the AccessLogValve logger, I
use this parameter:

pattern="%a (%B bytes/%D msec) %s %r"

The trouble is that it shows pretty much all the time -1 as the number
of bytes delivered. It does send a positive number of bytes, however,
when the content delivered is a GIF file (the application uses
multiple domains and each domain has its logo). Weird.

Tomcat is version 5.0.27. Is this a known bug fixed by a more recent version?

While I'm at it, I have two more questions about the valve:

1. what if I DON'T want any log rotation from Tomcat itself but leave
it to logrotate? Will setting timeFormat to a void string do the
trick? I also don't see an option to take only a filename to log to,
only a prefix and suffix... Does a plain filename option exist that is
hidden even from the Tomcat docs on apache.org?
2. does the %t pattern specifier accept the Apache {} extension, such
as %{%Y%m%d,%H:%M:%S}t which I use for my Apache logs?

Thanks,

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

Reply via email to