You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Karim Zaki <Ka...@itworx.com> on 2009/03/18 12:45:41 UTC

Hourly rolling file behaving erratically

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