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

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 con

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.11.0
    • Tests
    • None

    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

            carnold@apache.org Curt Arnold
            venkys venkatesh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified