I don't think there is an out of the box valve for doing this.
However, it shouldn't be too much work to use a Filter to wrap the
response (and it's outputstream/writer) so that as the data is pumped to
the client it is also written to a log.
Obviously, for the log to make sense entire responses should be
contiguous, which may (will) have a performance impact...
ben short wrote:
Hi Tim,
Thanks for that, but it only seems to log out the request/response
headers. Is It possible to log everything sent to the client?
Ben
On 7/24/07, Tim Funk <[EMAIL PROTECTED]> wrote:
Look at the RequestDumperValve
-Tim
ben short wrote:
> Hi,
>
> I using Tomcat 6.0.13 and Spring 2.0.6. I have been involved in
> developing a website that products pages in various formats , such as
> www, xml, wap and pda. We are having some issues with wap and pda, but
> cant ciew the html source thats being shown on the devices.
> We can view the html source in firefox using a wap and pda plugin, but
> the issues are not always the same or there at all.
>
> What I would like to do is log all the data sent to the client. I have
> been looking at encapsulating the HttpServletRequest and log out the
> data to a log file.
>
> Is there any easier way to do this with tomcat?
>
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]