1 环境准备
VS2010、下载log4net.dll
2 注意
LogHelper.cs文件中加载log4net.config的路径需要写成自己的路径
System.IO.FileInfo file = new System.IO.FileInfo(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase.Substring(8)), "config\\log4net.config"));
3 源码下载地址
http://share.weiyun.com/e98b0800577d73eb2c009eb0969d4483
时间: 2024-09-30 00:38:33