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

Log4cxx doesn't roll normally when working under multiple processes environment

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: Appender
    • Labels:
      None
    • Environment:
      RHEL 5.x, 6.x

      Description

      Log4cxx cannot roll file as expected when working under multiple processes environment, it will write to arbitrary log files, both size-base and time-based rolling policy have this issue. The attached patch fixed this by adding synchronization mechanism among different processes, it has been verified with apache(multiple process mode) under RHEL 4.x-6.x for size-based rolling and time-based rolling. To apply this needs to define LOG4CXX_MULTI_PROCESS macros.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chand Chand Priyaukara Gamage
                Reporter:
                sunwei Wei Sun
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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