My Technical Notes

Wednesday, 22 June 2016

Log4net: Invoking XML Configuration

This can be done in two ways. We either add an assembly attribute:


[assembly: log4net.Config.XmlConfigurator]

or we invoke it through code:


log4net.Config.XmlConfigurator.Configure();

No comments: