How do I disable log4net status messages to the console?

后端 未结 9 771
悲&欢浪女
悲&欢浪女 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:20

    I just went through this same problem (which, unsurprisingly, is how I found this question).

    Anyway, my problem, and possibly yours as well, was caused by a web/app config file setting of "<log4net debug=true>". Too obvious, right? I had pasted the skeleton of my app.config settings in from a web snippet, and had focused on the appenders, not really giving the root log4net element a second glance. But there you have it. This is in the FAQ, but again other things caught my eye and not this attribute.

提交回复
热议问题