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

Enhance the SlingConfigurationPrinter for better handling of large logs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • Commons Log 4.0.2
    • None
    • Commons
    • None

    Description

      Currently it often happen that the configuration status zip fail to create (truncated zip is generated).

      Most of the time it is due to large logs being added in the status.

      There already the problem that logs are added "twice", once as txt in the zip, and once as attachments, the first one must be the cause of the issues.

      It would help to:
      1. only add the logs as attachment
      2. remove the "txt" version of the printed logs combined in one super large file
      3. define a filter so that only recent logs are included and that any old rotation are skipped (large logs could be scanned to tail only the recent part like 1 day old , 2 day etc.. as configurable setting).

      The class is located here:
      http://svn.apache.org/viewvc/sling/trunk/bundles/commons/log/src/main/java/org/apache/sling/commons/log/logback/internal/SlingConfigurationPrinter.java?revision=1670022&view=markup

      Attachments

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              petitbear68 Thierry Ygé
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: