Hi,
Enable the AccessLogValve, which is commented out by default in
server.xml.  You can read about it in the Valve configuration reference
page in the tomcat docs.  You're right that the RequestDumperValve is
overkill for all but debugging, and it will hamper performance.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Jon Doe [mailto:[EMAIL PROTECTED]
>Sent: Monday, July 19, 2004 12:02 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 5: how do you set up logging as a stand-alone
webserver?
>
>I would like to use Tomcat 5 as a stand-alone webserver (ie NOT with
>Apache). Can anyone point me in the right direction to the appropriate
>documentation? I got the O'Reilly Definitive Guide (which covers Tomcat
4,
>but I assume from a management point of view there is little difference
>between that and 5), and in there it shows how to dump detailed HTTP
>traffic
>using the RequestDumperValve. But this is clearly overkill!
>
>What I would like is to generate the sort of logs that the Apache
webserver
>creates (ie its access and error logs). It seems the logs you get by
>default
>only push out Java stack traces. I would like to be able to see who is
>trying to connect to the Tomcat server, their web/IP address and the
URL
>they are using (there are doubtless script-kiddies out there who are
>determined to blow my webserver away, and I can't seem to pick this
info
>up!).
>
>I'm sure my answer is staring me in the face, but I can't just see what
it
>is!
>
>Thanks,
>
>Joe.
>
>_________________________________________________________________
>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
>http://join.msn.com/?page=features/virus
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to