如何在VS2010下使用Log4Net
来源:互联网 发布:sql语句exit 编辑:程序博客网 时间:2024/04/27 06:22
log4net has a known issue of referencing a System.Web component which is not part of the .NET Framework 4 Client Profile and the VS2010 by default sets project target to be the lightweighted Client Profile. The solution is to change the target to .NET Framework 4:
Right click project -> properties -> Application. Change:
.NET Framework 4 Client Profile
to be:
.NET Framework 4
... and that should work, i.e. you can use log4net again...
来自:http://stackoverflow.com/questions/1767253/log4net-with-net-4-0
范例:
App.config
注意:configSections节点和startup节点的顺序,否则只见文件而无法输出日志
AssemblyInfo.cs中添加
.cs代码正常使用
- 如何在VS2010下使用Log4Net
- log4net 在VS2010 NET4下的使用
- VS2010下使用log4net
- log4net在.Net下的应用(vs2010下不能使用)
- vs2010使用log4net
- vs2010 中使用 log4net
- vs2010 中使用 log4net
- vs2010使用log4net
- vs2010使用log4net
- 在VS2010下如何使用头文件unistd.h
- 在VS2010下如何使用头文件unistd.h
- 在VS2010下如何使用头文件unistd.h
- 在VS2010下如何使用头文件unistd.h
- 在vs2010下使用QT
- 如何使用log4net
- 如何使用log4net
- 如何使用log4net
- 如何使用log4net(转)
- ip路由
- ZOJ 1168 Function Run Fun
- 糟糕!此链接好像已损坏
- 清华大学计算机系网络课程 消除噪音
- 一起学Windows Phone7开发:容器控件
- 如何在VS2010下使用Log4Net
- 第二章 从内核出发
- SMDK2440 移植
- oracle中的rownum
- 第三章 进程管理
- C++函数调用方式(_stdcall, _pascal, _cdecl...)总结
- Android学习第一天:搭建环境+运行程序
- Linux中实现GetModuleFileName
- 多线程之四:MFC多线程通讯