Skip Menu |

This queue is for tickets about the Log-Log4perl CPAN distribution.

Report information
The Basics
Id: 20040
Status: resolved
Priority: 0/
Queue: Log-Log4perl

People
Owner: Nobody in particular
Requestors: squiker [...] zonnet.nl
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.05
Fixed in: (no value)



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.

Sorry for the long wait ... I think that the location of XMLLayout.pm should be left to the Log-Log4perl-Layout-XMLLayout CPAN module and not be modified by Log4perl. So I guess your best would be to convince the Log-Log4perl-Layout-XMLLayout author to move its location or at least provide a symlink to the xml directory. Hope that helps! -- Mike