Log4Net & RollingFileAppender to generate Xml files

Posted by SaguiItay on Stack Overflow See other posts from Stack Overflow or by SaguiItay
Published on 2010-01-21T19:30:30Z Indexed on 2010/06/11 0:02 UTC
Read the original article Hit count: 317

Filed under:
|
|

I've managed to configure Log4Net with a RollingFileAppender in order to generate Xml files.

However, the generated files are not valid XML files until a "roll" is performed - the XML doesn't have a closing XML tag.

Basically, this prevents to files from being read until that are "closed"/"rolled".

Anyone else encountered this issue?

I my previous (custom) solution I had to write the closing tag after writing each entry, and overwrite it with the next entry... :(

© Stack Overflow or respective owner

Related posts about Xml

Related posts about logging