I have a separate Log4Net.config file. I added
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4Net.config", Watch = true)]
in AssemblyInfo.cs
When I launch the application in debug mode, lognet is logged. When I publish an application in IIS, lognet writes nothing.
I also have the following items:
BasicConfigurator.Configure();
private static readonly ILog _logger = LogManager.GetLogger(typeof(_Default));
What is the reason for this?
source
share