Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.2.10
-
None
-
None
-
windows, all
Description
When decreasing the MaxSizeRollBackups parameter at runtime.
the log4net is not deleting older files that has already written.
This means that if i change the MaxSizeRollBackups parameter repeadetly, i can reach to very large number of old log files.
reconstruct scenario
^^^^^^^^^^^^^^^^^^^^^^
set number of backups to 10 files. wait till you have 10 files.
decrease number of backups to 2.
result- 10 files will remain at disk. 8 files will never be deleted, 2 files will stay as retention.
expected - only 2 files will remain in disk.
Attachments
Issue Links
- is superceded by
-
LOG4NET-367 RollingFileAppender-NG: rewrite the RollingFileAppender
- Open