Unable to configure socket appender with attribute useXml = true
----------------------------------------------------------------

                 Key: LOG4PHP-76
                 URL: https://issues.apache.org/jira/browse/LOG4PHP-76
             Project: Log4php
          Issue Type: Bug
          Components: Code
            Reporter: Dan Hansen


Configuring a socket appender as such:
        <appender name="socket" class="LoggerAppenderSocket">
                <param name="remoteHost" value="127.0.0.1" />
                <param name="port" value="8888" />
                <param name="useXml" value="false" />
        </appender>

Fails with the error:
PHP Fatal error:  Call to undefined method LoggerLayoutXml::getLog4jNamespace() 
in /apache-log4php/src/main/php/layouts/LoggerLayoutXml.php on line 78

Patch:

#P apache-log4php
Index: src/main/php/layouts/LoggerLayoutXml.php
===================================================================
--- src/main/php/layouts/LoggerLayoutXml.php    (revision 806229)
+++ src/main/php/layouts/LoggerLayoutXml.php    (working copy)
@@ -162,6 +162,13 @@
         $this->locationInfo = LoggerOptionConverter::toBoolean($flag, true);
     }
   
+       /**
+        * @return boolean
+        */
+       public function getLog4jNamespace() {
+               return $this->log4jNamespace;
+       }
+    
     /**
      * @param boolean
      */



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to