I'm pretty sure the answer is that it must be actively logging, and that does in fact make sense since I doubt you are trying to actively parse log files. So I guess the question is how do I set the daily rollover to happen at a certain hour, rather than at midnight?
Thanks On Tue, May 20, 2014 at 10:01 AM, Lucas Vickers <lu...@localprojects.net>wrote: > 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 >