log4net学习2-项目应用

1 环境准备

VS2010、下载log4net.dll

2 注意

1

 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

 

posted on 2015-06-15 21:25  宇宙工作室  阅读(112)  评论(0)    收藏  举报

导航