tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: How to split the default stdout log?
Date Tue, 06 Jul 2010 14:24:21 GMT
郑翼羽 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 ?


(*) 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 
[2010-07-06 16:12:50] [591  javajni.c] [error] Could not create instance of 

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
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:
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:
For additional commands, e-mail:

View raw message