Which are you using?  Log4j already has a RollingFileAppender (size or date
based, your choice) which rolls logs automatically.  Or, you can use
logrotate on linux.

http://logging.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFileAp
pender.html
http://logging.apache.org/log4j/docs/api/org/apache/log4j/RollingFileAppende
r.html

Tim

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 02, 2006 5:32 AM
To: Tomcat Users List
Subject: Re: Catalina.out gets to big-> Server crashes


Hello,

sorry, I just clean forgot to tell the version its 5.5.9.

I discovered the tomcat-juli.jar in the bin directory 
so I suppose its in use. Although I never used it so far.

So the idea is to switch x4juli.jar and I get the same functionality as in
log4J? That's great because I'm using it to log my webapps.

So despite this option the only real solution would be to do
it with shell scripts in my linux environment?

cheers,
Pete


> --- Ursprüngliche Nachricht ---
> Von: "Boris Unckel" <[EMAIL PROTECTED]>
> An: "Tomcat Users List" <users@tomcat.apache.org>
> Betreff: Re: Catalina.out gets to big-> Server crashes
> Datum: Thu, 2 Feb 2006 11:20:08 +0100 (MET)
> 
> Good Morning,
> 
> > Does anyone know how configure tomcat so that catalina.out only get 
> > a
> size
> > of 100 MB and then replaces it by a new empty catalina.out? The old 
> > one should be saved under a different name.
> > 
> There is information missing:
> Which Tomcat Version?
> Which logging API is in use?
> 
> Assuming Tomcat 5.5.x with default installation and Tomcat JULI in 
> use: Change to x4juli (see http://www.x4juli.org and the samples in 
> the distribution for Tomcat) and use a RollingFileHandler.
> 
> Without changing to x4juli (or log4j):
> Reduce the log level in conf/logging.properties for the FileHandler to 
> WARNING or SEVERE. You still have the problem that there is no rolling 
> but the log amount is reduced.
> 
> Regards
> Boris
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to