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
 
 
-----Original Message-----
From: Brian Burridge [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 12:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Where does System.out.println go under Tomcat

I am using Unix, but when I do a System.out.println the message does not come to my terminal window. Also, I added this to my startup.sh:
 1>>$TOMCAT_HOME/stdout.log 2>>$TOMCAT_HOME/stderr.log
 
and it did not redirect my system.outs to either log file.
 
Under both ServletExec and Jrun, any System.out's done within JSP actually go to a special error log and not to stout. Does Tomcat not have that?
 
Brian
----- Original Message -----
Sent: Monday, April 16, 2001 10:13 AM
Subject: Re: Where does System.out.println go under Tomcat


The logs just go to stdout as normal. Assuming you're using a Unix
variant, when you run startup.sh from a console, the stdout output goes to
the console window by default. If you log out then you'll lose any further
output, but Tomcat will continue as normal.

I redirect stdout and stderr to separate files from
$TOMCAT_HOME/bin/startup.sh as follows:

$BASEDIR/tomcat.sh start "$@" >>$TOMCAT_HOME/stdout.log
2>>$TOMCAT_HOME/stderr.log

Kevin

On Mon, 16 Apr 2001, Brian Burridge wrote:

> I've put some system out prints in my JSP pages, but I cannot find the
> error logs. I've found the logs for the web site (apache's standards
> logs) and I've found a servlet.log and a jasper.log under the jakarta
> logs directory, but I have no idea where servlet errors go.

Reply via email to