You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version: all DailyRollingFileAppender::rollover(bool alreadyLocked)
The method did not determine that maxBackupIndex<=0
When setting maxBackupIndex to 0, the program always displays two files, "log.2009-11-07" and "log.2009-11-07.1". The correct one should only appear as "log.2009-11-07"
You can refer to the RollingFileAppender:: roller (bool alreadyLocked)
//If maxBackups<=0, then there is no file renaming to be done
If (maxBackupIndex>0)
{...} Add a judgment