Subject: | XMLLayout cannot be used with Log4Perl when using Log4J config |
When using a Log4J log configuration file with Log4Perl the XMLLayout
File appender can not be used.
This is caused by the fact that the Log4J xml file appender is in
package org.apache.log4j.xml.XMLLayout not org.apache.log4j.XMLLayout
as is assumed by Config.pm
e.g. using the following in the configuration file causes the error:
<appender name="XMLFILELOGGER" class="org.apache.log4j.FileAppender">
<param name="File" value="logit.xml"/>
<layout class="org.apache.log4j.xml.XMLLayout">
<param name="LocationInfo" value="false"/>
</layout>
</appender>
A dirty hack fix (see sub add_layout_by_name) is added to this PR.
Subject: | Config.pm |
Message body is not shown because it is too large.