How do I disable log4net status messages to the console?

后端 未结 9 781
悲&欢浪女
悲&欢浪女 2021-01-11 16:44

I am using log4net in my .NET 3.5 console application and would like the log messages I generate to be seen in both the console standard out and the RollingFileAppender. The

9条回答
  •  终归单人心
    2021-01-11 17:24

    If you have this in your code:

    log4net.Config.BasicConfigurator.Configure();
    

    Change it to:

    log4net.Config.XmlConfigurator.Configure();
    

提交回复
热议问题