摘要: 最近两天刚好用到了写日志的功能,这个时候就想起了log4net,网上有很多介绍这个框架的文章,我这边只是用到了三个方面的知识。1,写入文件中;2,写入数据库中;3,在控制台上显示;以下都是在VS2015,WIN7的环境下做的。 写日志是每一个程序员都要经历的一个过程,当然一直使用公司产品的也可能不会 阅读全文
posted @ 2018-01-15 17:12 shuke2016 阅读(130) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8" ?><configuration> <!-- Register a section handler for the log4net section --> <configSections> <section name="log 阅读全文
posted @ 2018-01-15 16:47 shuke2016 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 配置文件 <?xml version="1.0"?><configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/> 阅读全文
posted @ 2018-01-15 14:54 shuke2016 阅读(449) 评论(0) 推荐(0) 编辑