Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-279

TimeBasedRollingPolicy cannot be used just as a TriggeringPolicy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.11.0
    • Component/s: Appender
    • Labels:
      None
    • Environment:
      All

      Description

      I was also playing around with using TimeBasedRollingPolicy as a
      TriggeringPolicy for rolling a file, but using a
      FixedWindowRollingPolicy as the RollingPolicy. This did not work as I
      expected. every logging event was triggering rollover so every file
      contained only 1 log event. This is because lastFileName is only
      updated in the rollover method

      I'm not sure this is supposed to be supported, but it would seem like
      it should work. This also means that using TimeBasedRollingPolicy to
      trigger a SMTPAppender will not work correctly and will flood your
      inbox with an email for every message!

        Attachments

          Activity

            People

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              dalewking Dale King
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: