Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-4947

Old log files not deleted when logging files to host

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 5.4.0, 4.7.0
    • None
    • None
    • None

    Description

      I don't think log4j is set up properly - https://stackoverflow.com/questions/49258877/defaultrolloverstrategy-does-not-delete-any-file  Seems like each of these

      <DefaultRolloverStrategy max="30" />

      Needs to be something like this instead.

      <DefaultRolloverStrategy>
          <Delete basePath="/opt/grouper/logs/" maxDepth="1">
              <IfFileName glob="grouper.log.*" />
              <IfLastModified age="P30D" />
          </Delete>
      </DefaultRolloverStrategy>

      Attachments

        Activity

          People

            shilen.patel@at.internet2.edu Shilen Patel (duke.edu)
            shilen.patel@at.internet2.edu Shilen Patel (duke.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: