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

LoggerAppenderRollingFile unable to open file and append logs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • PHP Version 5.2.1

    Description

      First, LoggerAppenderRollingFile::setFileName() tries to set parent property LoggerAppenderFile::$fileName which is private and therefor fails, resulting in an empty filename. Second, LoggerAppenderRollingFile::append() tries to access parent property LoggerAppenderFile::$fp which is also private, resulting to NULL.

      The easiest fix would be to set visibility for LoggerAppenderFile::$fileName and LoggerAppenderFile::$fp to protected.

      Attachments

        1. LoggerAppenderFile.php.patch
          0.6 kB
          Michael Aichler

        Activity

          People

            kurdalen Knut Urdalen
            micha Michael Aichler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: