Log4php
  1. Log4php
  2. LOG4PHP-103

Exception when using more than one LoggerAppenderFile

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: Code
    • Labels:
      None

      Description

      When using more than one file appender in the log4php.properties, an Exception is thrown in LoggerAppenderFile::activateOptions.
      Apparently, the method is called when the fileName is not yet set.

        Activity

        Hide
        Christian Grobmeier added a comment -

        in rv925969 with slight modifications (instanceof checks instead of get_class)

        Your patch layout is actually very unreadable and not to use with eclipse I had to pull the content out from the file manually. This works for small issues, but not for the big changes

        However, thanks for the patch!

        Show
        Christian Grobmeier added a comment - in rv925969 with slight modifications (instanceof checks instead of get_class) Your patch layout is actually very unreadable and not to use with eclipse I had to pull the content out from the file manually. This works for small issues, but not for the big changes However, thanks for the patch!
        Hide
        Moritz Schmidt added a comment -

        proposed solution (patch for rev912120, I'm using git svn, so the patch format is probably not as it should be for svn...)

        Show
        Moritz Schmidt added a comment - proposed solution (patch for rev912120, I'm using git svn, so the patch format is probably not as it should be for svn...)

          People

          • Assignee:
            Unassigned
            Reporter:
            Moritz Schmidt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

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

                Development