Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-196

Appender Rolling File: Seperate PHP processes attempting to roll the same log file will truncate the log.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.1
    • None
    • Code
    • Windows

    Description

      Attaching a class extension to LoggerAppenderRollingFile named LoggerAppenderRollingFileWindows. This class enacts 'blocking' to keep seperate PHP processes from truncating the log file by attempting to roll the logs at/near the same exact time. It also uses a 'rename' in a manner that is much quicker then a copy for large files.

      Attachments

        1. config_roll_windows.xml
          1 kB
          Kyle Wiering
        2. fileroller.php
          2 kB
          Kyle Wiering
        3. filewriter.php
          0.2 kB
          Kyle Wiering
        4. LoggerAppenderRollingFileWindows.php
          7 kB
          Kyle Wiering
        5. LoggerAppenderRollingFileWindowsTest.php
          8 kB
          Kyle Wiering
        6. LoggerAutoloader.php
          7 kB
          Kyle Wiering

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwiering Kyle Wiering
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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