You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by "Christian Grobmeier (JIRA)" <ji...@apache.org> on 2009/08/27 22:44:59 UTC

[jira] Resolved: (LOG4PHP-76) Unable to configure socket appender with attribute useXml = true

     [ https://issues.apache.org/jira/browse/LOG4PHP-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Grobmeier resolved LOG4PHP-76.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

Applied with rv808615
Thanks for the patch!

> 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
>             Fix For: 2.0
>
>
> 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.