Log4php
  1. Log4php
  2. LOG4PHP-93

LoggerClassNamePatternConverter accessing private property

    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
    • Environment:

      PHP 5.3.1

      Description

      Set up logging configuration with pattern "C"

      PHP Fatal error: Cannot access private property LoggerLoggingEvent::$fqcn in /var/test/log4php/helpers/LoggerClassNamePatternConverter.php on line 42

      Index: LoggerLoggingEvent.php
      ===================================================================
      — LoggerLoggingEvent.php (revision 903559)
      +++ LoggerLoggingEvent.php (working copy)
      @@ -31,7 +31,7 @@
      /**

      • @var string Fully Qualified Class Name of the calling category class.
        */
      • private $fqcn;
        + public $fqcn;

      /**

      • @var Logger reference

        Activity

        Hiroaki Kawai created issue -
        Christian Grobmeier made changes -
        Field Original Value New Value
        Fix Version/s 2.1 [ 12313917 ]
        Christian Grobmeier made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ivan Habunek made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Hiroaki Kawai
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development