i reckon use log4j.. its a really good looking product!
-----Original Message-----
From: Sam Newman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 18 April 2001 5:25 PM
To: [EMAIL PROTECTED]
Subject: Re: Where does System.out.println go under Tomcat

I would strongly suggest you don't use System.out commands. Depending on how you run tomcat, it can be very easy to loose this information. Insteatd use the HttpServletContext log() method for debugging. I went as far as to use this for debugging support classes by passing a reference of the calling servlet into method calls. doing something like 'this.getServletContext().log("msg")` in a servlet will stick stuff in the log files under tomcat/log. I belive you can also specify different log files for each web context.
 
sam
----- Original Message -----
Sent: Tuesday, April 17, 2001 7:13 PM
Subject: RE: Where does System.out.println go under Tomcat

Hi Brian!!
 
Did you got the solution to your problem. I am facing the same problem. I am using unix and running tomcat as standalone. 
I am trying to debug some  classes. So I put some System.out.println statements in them. I have put these classes at the first position in classpath, so that these classes get picked up rather than those from the standard .jars
 
I expect these System.out.println statements to be displyed on console or in logs but could not find them.
 
If anyone can point me where I am going wrong I will be grateful.
 
Thanks in advance
 
Animesh
 
 

Reply via email to