Tomcat Standalone log

T

Tim

I'm doing some development using Windows 98 SE.
When I debug my programs, I use something along the lines of
System.out.println("Entering Test");
I can see this output in the DOS window that opens up when I start Tomcat.
Is this also written to a log somewhere where I could see it if I
couldn't view the DOS window?
I looked into the log files and they didn't seem to have the output but
was wondering if it's somewhere else.

Thanks,
Tim
 
O

Oscar Kind

Tim said:
I'm doing some development using Windows 98 SE.
When I debug my programs, I use something along the lines of
System.out.println("Entering Test");
I can see this output in the DOS window that opens up when I start Tomcat.
Is this also written to a log somewhere where I could see it if I
couldn't view the DOS window?
I looked into the log files and they didn't seem to have the output but
was wondering if it's somewhere else.

Tomcat has a directory called "logs". You can find it in the directory
where Tomcat lives. By default, Tomcat writes its log files in that
directory. B default the log of a web application is written to the
server log file ("localhost_log.<yyyy-mm-dd>.txt" or similar).


Oscar
 
T

Tim

Oscar said:
Tomcat has a directory called "logs". You can find it in the directory
where Tomcat lives. By default, Tomcat writes its log files in that
directory. B default the log of a web application is written to the
server log file ("localhost_log.<yyyy-mm-dd>.txt" or similar).


Oscar

Thanks but I can't see the output from the System.out.println statements.
 
L

Leo Gaggl

This file contains the stdout (system console) log:

%TOMCAT_HOME%/logs/stdout.log

HTH,
 
T

Tim

Leo said:
This file contains the stdout (system console) log:

%TOMCAT_HOME%/logs/stdout.log

HTH,

I can't seem to find that file. Is it possible I have something set that
suppresses this file?
 
L

Leo Gaggl

What platform are you using ? As my dev platform I am using XP Pro with
Tomcat 4.1 installed - the logfile was always there using the standard
install - never had to modify log settings for that.

On my Mandrake Machine the system log is called
%TOMCAT_HOME%/logs/catalina.out
 
T

Tim

Leo said:
What platform are you using ? As my dev platform I am using XP Pro with
Tomcat 4.1 installed - the logfile was always there using the standard
install - never had to modify log settings for that.

On my Mandrake Machine the system log is called
%TOMCAT_HOME%/logs/catalina.out

Windows 98 SE, Apache Tomcate 4.1 standalone.

I don't recall changing any of the settings.
 
D

David W. Burhans

On a UNIX host, the catalina.sh redirects standard out and standard
error to the catalina.out file by default. On a Windows host, the
catalina.bat does not redirect standard out to any file.

Consider using log4j (or any other logging package) to log your debug
(and non-debug) messages. If this is not an option, then alter the
catalina.bat file to log standard out to a file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top