1. XmlConfigurator must have its Watch property set to true
2. The output log file must be written to a folder where the service user has writing rights
To solve this you can add this line to your AssemblyInfo.cs:
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
And you have to choose a suitable output path such as:
<file value="${ALLUSERSPROFILE}\Company\Product.log" />
3 comments:
This saved my life, thanks for sharing
thanks helps me a lot.
after a long search this post was helpful... thanks!!!
Post a Comment