Yes. It happens to me (on Windows). I have several machines running my application and occasionally I will get a very large log file with RollingFileAppender.
-----Original Message----- From: Robinson, Brian L (IS) [mailto:[email protected]] Sent: 30 March 2010 20:25 To: [email protected] Subject: RollingFileAppender not working consistently I have a project in several environments (development, integration test, system test, ect.) and I'm using the RollingFileAppender. Unfortunately it is not working consistently across the environments. In some of the environments only a single log file is created and it grows very large. I've attached my log4j.properties file (with some names being changed to protect the identity of employer and project). The log levels are slightly different in the different environments and the location of the log file changes from d: to c: for some environments (I know the environments should all be the same - talk to my bosses). The application is a web application and is multi-threaded with at least one thread that in some cases will run separately for 10 to 20 minutes generating large amounts of log messages. Has anyone had trouble with RollingFileAppender using only one large log file? # This file is copied to the WEB-INF/classes directory. # For JBoss: Avoid to setup Log4J outside $JBOSS_HOME/server/default/deploy/log4j.xml! # For all other servers: Comment out the Log4J listener in web.xml to activate Log4J. log4j.rootLogger=INFO, stdout, logfile log4j.category.com.lpcs=INFO log4j.category.org.springframework=INFO log4j.category.com.lpcs.ethelross.flower.service.external=INFO log4j.category.com.lpcs.ethelross.scheduledjobs.notifications=DEBUG log4j.category.com.lpcs.ethelross.flower.dao=INFO log4j.category.com.lpcs.ethelross.flower.service=DEBUG log4j.category.com.lpcs.ethelross.flower.web=INFO log4j.category.com.lpcs.ethelross.flower.service.external.FlowerExternal AdapterFLAMWebService=INFO log4j.category.com.lpcs.ethelross.flower.service.external.FlowerExternal FacadeFLAMService=INFO #log4j.category.com.lpcs.ethelross.flower.security.filter=DEBUG #log4j.category.com.lpcs.ethelross.flower.service.external.FlowerExterna lAdapterMOTHRAWWebService=DEBUG log4j.category.com.lpcs.ethelross.flower.service.external.FlowerExternal FacadeMOTHRAWService=INFO #log4j.category.com.lpcs.ethelross.flower.service.external=DEBUG log4j.category.com.lpcs.ethelross.scheduledjobs.notifications.NotifyUser sJob=INFO log4j.category.com.lpcs.ethelross.flower.dao.RoleManagementListQueryBuil der=DEBUG log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d %p [%c{1}] - <%m>%n log4j.appender.stdout.BufferSize=1KB log4j.appender.stdout.BufferedIO=true log4j.appender.logfile=org.apache.log4j.RollingFileAppender log4j.appender.logfile.File=d:/opt/logs/flower.log log4j.appender.logfile.MaxFileSize=512KB log4j.appender.logfile.BufferSize=1KB #log4j.appender.logfile.BufferedIO=true # Keep three backup files. log4j.appender.logfile.MaxBackupIndex=10 # Pattern to output: date priority [category] - message log4j.appender.logfile.layout=org.apache.log4j.PatternLayout log4j.appender.logfile.layout.ConversionPattern=%d %p [%c{1}] - %m%n --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
