log4net使用中loginfo.IsInfoEnabled、loginfo.IsErrorEnabled等一直为false时解决方法

一、检查Log4net.config属性设置,Copy to output directory项必须设置为:copy if new 或copy always;

二、将Log4net.config文件复制到bin--debug/release目录下
---------------------
作者:zwm_16
来源:CSDN
原文:https://blog.csdn.net/zwm19873_8/article/details/78717768?utm_source=copy

10-13 19:41