log4net configuration problem
- by user177883
I have a seperate Log4Net.config file. I added
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4Net.config", Watch = true)]
to AssemblyInfo.cs
When I run the application with debug mode, lognet is logging. When i publish the application to IIS, lognet is not logging anything.
I have the followings also :
BasicConfigurator.Configure(); // in a method
private static readonly ILog _logger = LogManager.GetLogger(typeof(_Default)); // for the instance
What would be the reason for this?