郑翼羽 wrote:
Thanks.

The bad news is all the output codes are in a single webapp, and have no
hope to use log4j instead of the current "system.out" codes.

Just I hope to find a way that can make tomcat generate a stdout.log file
eveyday, or at any interval.

Hi again.
I tried what I suggested earlier (with the Apache rotatelogs utility), but that does not seem to work. (*)

Can you confirm :
1) that you are running Tomcat 5.5 as a Windows Service
2) if yes, what you currently see when you run the tomcat5w.exe GUI, in the Logging tab, in the boxes for STDOUT and STDERR
3) what name do your logfiles have ?

Thanks


(*) When i do that, I get a logfile tomcat_dir/logs/jakarta_service_20100706.log containing 2 lines : [2010-07-06 16:12:50] [591 javajni.c] [error] Could not create instance of java/io/FileOutputStream [2010-07-06 16:12:50] [591 javajni.c] [error] Could not create instance of java/io/FileOutputStream

from which i suspect that the tomcat5.exe/procrun wrapper does not like it, when one tries to give it something like this as a destination for its logfiles :
|c:/tomcat5.5/bin/rotatelogs.exe -l C:/Tomcat5.5/logs/stdout.%Y.%m.%d 86400

(I also tried flipping the slashes the other way, with no more success).

This was with
C:\Tomcat5.5\bin>version.bat
Using CATALINA_BASE:   C:\Tomcat5.5
Using CATALINA_HOME:   C:\Tomcat5.5
Using CATALINA_TMPDIR: C:\Tomcat5.5\temp
Using JRE_HOME:        C:\Java6jdk
Using CLASSPATH:       C:\Tomcat5.5\bin\bootstrap.jar
Server version: Apache Tomcat/5.5.26
Server built:   Jan 28 2008 01:35:23
Server number:  5.5.26.0
OS Name:        Windows XP
OS Version:     5.1
Architecture:   x86
JVM Version:    1.6.0_06-b02
JVM Vendor:     Sun Microsystems Inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to