You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Michael Weir (Transform Research)" <MW...@TransRes.com> on 2001/11/06 20:48:01 UTC

Tomcat4.0.1 -- logging requests & responses

Is it possible to tell Tomcat4.0.1 to log all incoming requests and all
responses out to log files?
Thanks.

Re: Tomcat4.0.1 -- logging requests & responses

Posted by Janek Bogucki <ja...@yahoo.co.uk>.
Try this as a starting point:

  
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html

Request Dumper Valve

"The Request Dumper Valve is a useful tool in
debugging interactions with a client application (or
browser) that is sending HTTP requests to your
Tomcat-based server. When configured, it causes
details about each request processed by its associated
Engine, Host, or Context to be logged to the Logger
that corresponds to that container."

If it doesn't fit your purposes exactly you could
write your own variation using
org.apache.catalina.valves.RequestDumperValve as a
starting point.

HTH,
Janek


 --- "Michael Weir (Transform Research)"
<MW...@TransRes.com> wrote: > Is it possible to tell
Tomcat4.0.1 to log all
> incoming requests and all
> responses out to log files?
> Thanks.
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>