Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-956

rollingPolicy will remove wrong files

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Major Major
    • None
    • 1.1.1
    • logback-classic
    • None
    • Linux, Java 7

    Description

      rollingPolicy maxHistory=30; fileNamePattern
      ${logs-name}-warn.%d

      {yyyy-MM-dd}

      .%i.log
      Will remove the logs from another appender (maxHistory=0); with fileNamePattern
      ${logs-name}.%d

      {yyyy-MM-dd_HH}

      .%i.log
      -------
      Probably short description is wrong.
      Full story:
      On our servers some log files older then 30 hours are disappearing.
      We have two sets of log files WARN and DEBUG

      the maxHistory set to 0 for DEBUG logs. But they are disappearing.
      the maxHistory set to 30 for WARN logs that have a different name pattern

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            vlads Vlad Skarzhevskyy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: