log4net configuration problem

Posted by user177883 on Stack Overflow See other posts from Stack Overflow or by user177883
Published on 2010-05-08T23:31:46Z Indexed on 2010/05/08 23:38 UTC
Read the original article Hit count: 185

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET