Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-185

Rolling files backups is not decreasing when updating MaxSizeRollBackups

    XMLWordPrintableJSON

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

          Activity

            People

              Unassigned Unassigned
              nirbo nir bon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: