Create a special servlet that, in its init method, it sets
System.err to a FileOutputStream.  Then add this servlet to the web.xml file
with a <load-on-startup>.  I would suggest a low number
(Integer.MIN_VALUE+1) so that it starts before any of your other servlets.

        Randy

Answering questions is so much easier than doing my own work.

-----Original Message-----
From: Nik Makepeace [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 10:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Logging problems


On 2 Feb 2001, at 16:09, Adrian Papari wrote:

> how do you handle the exceptions? if you, for instance, redirect the
> user to an error page when an error occurs, you (or, erm, the user )
> shouldn't see the internal error messages.

They aren't 500 errors, but rather conscious decisions to write to 
System.err in the source for the servlets.  Basically, we are using 
System.err to write debug for our servlets.

Jserv used to pick up System.err and send it to its error log, but it 
seems like Tomcat doesn't behave this way.  Any clues?  We are really 
stumped.

Nik

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

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

Reply via email to