i am trying to rotate the log file everyday by using the DailyRollingFileAppender, but i have a problem: the log files are not updated everyday, so it doesn’t get rotate when there is no new stuff in it.
is there a way in the log4j.properties that i can set it so that log4j rotate the log file everyday even if the file has no changes?
Log4j
DailyRollingFileAppenderwill not output an empty file if no logging has occurred. From the implementation: