logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karim Zaki <Karim.Z...@itworx.com>
Subject Hourly rolling file behaving erratically
Date Wed, 18 Mar 2009 11:45:41 GMT
Hi all,

We have an appender configured to roll on an hourly basis. However, it doesn't seem to be
behaving consistently. It doesn't roll every hour all the time. This is how the appender is
configured:

log4j.appender.<appender>=org.apache.log4j.DailyRollingFileAppender
log4j.appender.<appender>.File=<path>
log4j.appender.cc.Append=true
log4j.appender.cc.DatePattern='_'yyyyMMdd'_'HH

Does this configuration mean that the file will roll every hour even if nothing has been written
to the log during the hour? When does the actual rotation take place? Is it when a request
is received and the logger finds that the hour has changed, or does it happen regardless of
whether there are requests coming in? Can anyone think of a reason for this erratic behavior?

The system is running Solaris 10 on SPARC, and the log4j version is 1.2.8.

Thanks,
Karim
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message