Try the DailyRollingFileAppender. http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFileAppender.html
>>> [EMAIL PROTECTED] 07/16/02 10:17AM >>> Hi, I'm looking to roll over my log file on a daily basis (not based on file size) and was wondering how this can be done. I couldn't find any reference on that. Any help out there. My log.cfg file is configured like that: log4j.rootCategory=debug, R log4j.category.Parser=warn log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern to output the caller's file name and line number. log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%c) - %m%n log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=/abc/logs/appl.log log4j.appender.R.MaxFileSize=15MB # Keep one backup file log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d %5p [%t] %c - %m%n **************************************************************** Please Note The information in this E-mail message is legally privileged and confidential information intended only for the use of the individual(s) named above. If you, the reader of this message, are not the intended recipient, you are hereby notified that you should not further disseminate, distribute, or forward this E-mail message. If you have received this E-mail in error, please notify the sender. Thank you ***************************************************************** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>