XML Layout intentionally writes a file with no valid root element. You need to wrap the file in a root element. An easy way to do this is to use DTD entity includes or use XMLInclude. Or, load it as a DocumentFragment into a full Document using the DOM.

BTW, you should post this to the log4j-user list. This list is for development issues. I've directed this reply to the user list and cc'd the dev list.

Jake

At 10:59 PM 6/7/2007, you wrote:
>hi,
>
>I'm using log4j for logging. I'm doing this using XmlLayout.
>When i logged a message it is logging as shown below
>
><log4j:event logger="hale" timestamp="1181233009285" level="DEBUG"
>thread="http-8080-Processor4">
><log4j:message><![CDATA[After Initial Logging]]></log4j:message>
></log4j:event>
>
>And i'm using xslt to view the log files.
>
>But when i'm try to log like this
>
><log4j:event logger="hale" timestamp="1181233009285" level="DEBUG"
>thread="http-8080-Processor4">
><log4j:message><![CDATA[<msg>After Sort</msg><datetime>2007-06-07
>09:46:49</datetime><user>HALE</user>]]></log4j:message>
></log4j:event>
>
>i'm not able to view using the xslt.
>Need help in this regard.
>
>thanks & regards,
>Rajshekhar
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to