Problem with rolling file appender

Hi,

I have a strange problem with rolling file appender ..more specially daily rolling file appender. Rolling is not happening based on date but rather randomly. After every few hits, a new log file is created and there seems to be no particular logic/pattern behind this rolling that i'm aware of.

This is my log4j.properties file:

log4j.logger.org.comp=DEBUG, MyLogger

log4j.appender.MyLogger=org.apache.log4j.DailyRollingFileAppender

log4j.appender.MyLogger.File=logs/EPFlog4j.log

log4j.appender.MyLogger.DatePattern='.'yyyy-MM-dd-HH-mm

log4j.appender.MyLogger.layout=org.apache.log4j.PatternLayout

log4j.appender.MyLogger.layout.ConversionPattern=[%d] %t %c %-5p - %M.%L - %m%n

I have similar rolling issue even for a fixed size rolling appender as well.

Any help or suggestion would be greatly appreciated.

Thank You

Hari

[910 byte] By [hariscornera] at [2007-10-3 6:31:06]
# 1
Hi, hari, I met the same problem as yours. Did you solve it? Thanks.
coolmobilea at 2007-7-15 1:18:17 > top of Java-index,Archived Forums,Debugging Tools and Techniques...