Log4net xml output

后端 未结 3 1991
忘了有多久
忘了有多久 2020-11-29 06:07

I want full control over log4net xml output.

How is it possible to customize the output template?

3条回答
  •  悲哀的现实
    2020-11-29 06:57

    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.

提交回复
热议问题