I have a few applications and I want add to their reference to my class library MyLogger, which bases at log4net. In this library I have App.config file.
So I want configuration file only in this one project/library.
So, this is method in my applications
   public void TestMyLogger()
    {
    MyLogger myLogger=new MyLogger();
    }
and this is MyLogger:
public class MyLogger
    {
        public MyLogger()
        {
            log4net.Config.XmlConfigurator.Configure();
            Log.Fatal("this is a fatal msg");
            Log.Error("this is an error msg");
            Log.Warn("this is a warn msg");
            Log.Info("this is an info msg");
            Log.Debug("this is a debug msg");
}
}
How to correct this, to have everything working?
 
     
     
    