Log4php
  1. Log4php
  2. LOG4PHP-5

LoggerAppenderRollingFile unable to open file and append logs

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      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.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        153d 4h 17m 1 Knut Urdalen 23/Mar/08 20:33
        Resolved Resolved Closed Closed
        2078d 14h 23m 1 Ivan Habunek 01/Dec/13 10:56
        Ivan Habunek made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Gavin made changes -
        Fix Version/s 2.0 [ 12313916 ]
        Knut Urdalen made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Knut Urdalen made changes -
        Assignee Knut Urdalen [ kurdalen ]
        Michael Aichler made changes -
        Field Original Value New Value
        Attachment LoggerAppenderFile.php.patch [ 12368154 ]
        Hide
        Michael Aichler added a comment -

        Patch for LoggerAppenderFile

        Show
        Michael Aichler added a comment - Patch for LoggerAppenderFile
        Michael Aichler created issue -

          People

          • Assignee:
            Knut Urdalen
            Reporter:
            Michael Aichler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development