Subject: | Log4J configuration files can not be used. |
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. For
this dirty fix to work the XMLLayout also needs to be pressent in a
xml folder.
Subject: | Config.pm |
Message body is not shown because it is too large.