My Environment:

Using CATALINA_BASE:   D:\tomcat5528

Using CATALINA_HOME:   D:\tomcat5528

Using CATALINA_TMPDIR: D:\tomcat5528\temp

Using JRE_HOME:        D:\java\jdk1.5.0_12

Using CLASSPATH:       D:\tomcat5528\bin\bootstrap.jar

Server version: Apache Tomcat/5.5.28

Server built:   Jul 24 2009 01:33:09

Server number:  5.5.28.0

OS Name:        Windows Vista

OS Version:     6.1

Architecture:   x86

JVM Version:    1.5.0_12-b04

JVM Vendor:     Sun Microsystems Inc.


I have used the tomcat unzipped from the zip file, and added it in the
system service using "service.bat install".


The default setting of the stdout in the Logging tabpage is : auto, at this
situation, when tomcat runs, it will generate log file in
"D:\tomcat5528\log" folder, and the related log file name will be
"stdout_20100707.log".


If I set that box to a fixed file, such as "tomcat.log", then if tomcat
restarts, it will generate a file called "tomcat.log". Before the next
restart (maybe many months),  all the output info are appended to that file,
which makes the log file to large.



On Tue, Jul 6, 2010 at 10:24 PM, André Warnier <a...@ice-sa.com> wrote:

> 郑翼羽 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