aspose file tools*
The moose likes Tomcat and the fly likes I am not able to see the stdout and stderr log files in the tomcat/log directory? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "I am not able to see the stdout and stderr log files in the tomcat/log directory?" Watch "I am not able to see the stdout and stderr log files in the tomcat/log directory?" New topic
Author

I am not able to see the stdout and stderr log files in the tomcat/log directory?

Muralidharan Raju
Greenhorn

Joined: Feb 24, 2011
Posts: 25

hey folks,

all the error messages are being displayed in console. i want the tomcat to print in log files stdout and stderr .. how to configure that?(i am using windows XP).
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16308
    
  22

The tomcat scripts control redirection of Tomcat's stdout and stderr files. Specifically, look at TOMCAT_HOME\bin\catalina.bat.

Usually, the scripts are set up to write a combined stdout/stderr to TOMCAT_HOME/logs/catalina.out, but there are several alternative setups depending on the platform being used.

Just to be clear, however, catalina.out is intended to log TOMCAT messages, not serve as a log for applications. Applications should use a proper logger such as log4j or the java.lang.log interface package (juli) and not simply write to stdout/stderr.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am not able to see the stdout and stderr log files in the tomcat/log directory?