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

Reply via email to