I try to rotate the log file every day using DailyRollingFileAppender, but I have a problem: the log files are not updated every day, so it does not rotate when there are no new things in it.
Is there a way in log4j.properties that I can set it so that log4j changes the log file every day, even if the file has no changes?
source
share