I want full control over log4net xml output.
How is it possible to customize the output template?
Check out the XmlLayoutBase class. I think thats probably what you need. There's a FormatXML function you will need to override to supply the XmlWriter with the correctly formatted data.