Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7676

Refactor LogWriter to use SizeAndTimeBasedRollingPolicy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • Commons Log 5.1.6
    • None
    • Commons
    • None

    Description

      As discussed in SLING-7660 and LOGBACK-266, the currently used FixedWindowRollingPolicy can be expensive when a lot of old files should be retained. This is because all files need to be renamed during log-file rotation, which can be expensive on some file systems.

      The recommendation is to use SizeAndTimeBasedRollingPolicy instead, which allows limiting the size of individual log files by adding a date field and a counter to each log-file's name.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jsedding Julian Sedding
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: