From: Brian Candler Date: 2008-08-30T05:23:04+09:00 Subject: Re: How to use log4r to generate xml format log file? > I want to use log4r to generate xml formatted log file Aside: is there a standard way of using XML for log files? I had a need for writing structured data to a log a while ago, and considered XML, but rejected it on the grounds that anything which appends is always going to generate invalid (i.e. not-well-formed) XML. For example: foo bar This is malformed because it has more than one root node, and therefore will be rejected by just about any XML parser. Similarly, foo bar is also malformed, until such time that you append the closing tag (but at that point you can no longer append any more logs to that file). Regards, Brian.