logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucas Vickers <lu...@localprojects.net>
Subject Question regarding the technical details of a log rollover
Date Tue, 20 May 2014 14:01:05 GMT
Hello,

I'm using log4j.appender.rotating=org.apache.log4j.DailyRollingFileAppender
on three machines, all set to rotate the log at midnight.

Two of the machines (Windows) restart at 4am daily, and they are rotating
the logs without issue.
One of the machines (OS X) is set to shut down at 10pm and wake at 4am.  On
this machine I have not seen the log rotating.  I just set the log to
rotate every minute and that worked fine, so I trust the library works on
OS X.

My question is, does the application have to be running at midnight in
order for the log rollover to occur, or would the logger check the last
timestamp in the file and know the log was from yesterday?

thanks
Lucas

Mime
View raw message