You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by adi Ekstein <ad...@adamtech.co.il> on 2001/12/02 12:34:16 UTC
Bug Report: Nonwell-formed XML output to log when logging locati
on info
> Hello,
>
> Im using Log4j to log to a file with the DOMConfigurator (in order to log
> to a XML file).
> In the configuration file (listed below) im using: param
> name="LocationInfo" value="true"
>
> When performing a log request from a Constractor of a Class (i.e. -
> cat.debug("testing 123");) the lines in the files appear as the following:
> A. Notice that the value of the method parameter is "<init>" - this is not
> a valid aml output and therefore an XML proccessor is issuing an error
> when handling that log.
> B. In any case the log should include the Constractor name instead of the
> word: Init.
>
> <log4j:event category="actions.ActionFactory" timestamp="1007287818685"
> priority="INFO" thread="HttpProcessor[8080][4]">
> <log4j:message><![CDATA[just a test]]></log4j:message>
> <log4j:locationInfo class="actions.ActionFactory" method="<init>"
> file="ActionFactory.java" line="16"/>
> </log4j:event>
>
> I will appriciate it if you have any solution for this problem if it is
> already reported
>
>
> Configuration File:
> ------------------------
> ?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> <log4j:configuration>
> <appender name="R"
> class="org.apache.log4j.DailyRollingFileAppender">
> <param name="File" value="exampleXML.htm.log"/>
> <param name="Append" value="true"/>
> <param name="DatePattern" value="'.'yyyy-MM-dd"/>
> <layout class="org.apache.log4j.xml.XMLLayout">
> <param name="LocationInfo" value="true"/>
> </layout>
> </appender>
> <root>
> <priority value="debug"/>
> <appender-ref ref="R"/>
> </root>
> </log4j:configuration>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>