• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Muralidharan Raju
Greenhorn
Posts: 25
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic