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" />
0 comments:
Post a Comment