yes the name of the class is 'RollingFileAppender' and you can specify maxFileSize with log4j.appender.file.maxFileSize parameter (as in log4.properties attributes entries located here) log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.maxFileSize=100KB
http://www.laliluna.de/log4j-tutorial.html M-- ----- Original Message ----- From: "david delbecq" <[EMAIL PROTECTED]> To: "Tomcat Users List" <users@tomcat.apache.org> Sent: Tuesday, December 25, 2007 12:05 PM Subject: Re: Regarding setting log size > catalina.out it the output of stdio and stderr, for this file, it's not > easy to logrotate it, unless you stop tomcat at night. For the others > ones, using log4j, i suggest you take a look at log4j documentation, it > explains how to do rotating log for the log4j appenders. > abdul razack a écrit : > > Hi, > > > > We are using tomcat apache-tomcat-5.5.23 for development purpose. > > We want the same tomcat to push for Production in Window 2000 server. > > > > Our web application log level is low. > > > > All logs would be created in directory D:\apache-tomcat-5.5.23\logs. > > The log file names are as, > > 1.localhost.2007-12-24.log > > 2.catalina.2007-12-24.log > > 3.manager.2007-12-24.log > > 4.host-manager.2007-12-24.log > > 5.admin.2007-12-24.log > > > > But log size would increase in production day by day. > > > > We want that tomcat automatically archives the log files and > > create a new one once a certains size is reached. > > > > we are not using log4j properties. > > > > Please help us what needs to set in logging.properties file. > > > > Thanks & Regards > > -Abdul Razack > > > > > > > > --------------------------------- > > Never miss a thing. Make Yahoo your homepage. > > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]