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

Refactor LogWriter to use SizeAndTimeBasedRollingPolicy

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Commons Log 5.1.6
    • Fix Version/s: None
    • Component/s: Commons
    • Labels:
      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

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

                Dates

                • Created:
                  Updated: