XMLLayout and well formatted XML documents

2001-07-24 Thread Krishnamurthy, Balaji (MED)
Hi folks, I started using log4j recently and have started liking it. I needed a xml based log output format. So I used org.apache.log4j.xml.XMLLayout & RollingFileAppender and found that it is quite good. However it does not generate well formed xml documents. There is no root tag and hence th

Re: XMLLayout and well formatted XML documents

2001-07-25 Thread Sam Newman
The source code for the XMLFileAppener is included with the distribution. You could edit it I guess this file and rename it or something (WellFormedXMLFileAppender?) - shouldn't be too hard. sam Krishnamurthy, Balaji (MED) Wrote: > > Hi folks, > > I started using log4j recently and have starte

Re: XMLLayout and well formatted XML documents

2001-07-25 Thread Ceki Gülcü
This is what the javadoc says: The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate file to form a correct XML file. For

RE: XMLLayout and well formatted XML documents

2001-07-25 Thread Krishnamurthy, Balaji (MED)
: XMLLayout and well formatted XML documents This is what the javadoc says: The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate