This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using System.IO;
using System.Reflection;
namespace CommonFunc
{
public class LogHelper
public static LogHelper instance = new LogHelper();
public log4net.ILog log = null;
public LogHelper()
//那么我就获取log4net的配置文件,并将它加载到我们的项目中去
log4net.Config.XmlConfigurator.Configure(new FileInfo(@"Config\log4net.config"));
log = log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
}