I have my log4net Wrapper and log4net dll in its own class project and i have added the following to assemblyinfo.cs of the class project
// log4net config file
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4Net.config", Watch = true)]
So my main project has the log4net.config file and logging is working in my main project.
I also have another class project (nothing to do with log4net) which my main project (where logging is working) calls the class project. So i enter the new class project and need to log something but IsDebugEnabled returns false .. this is the line
LogManager.GetLogger("DebugLogger").IsDebugEnabled;
So main project (webproject) which has a reference to my LOGGING class return TRUE, but a class project that i call from my main project returns false.
It appears that the class project isn't reading the log4net
Any ideas?