如果我使用log4net(版本1.2.13.0),如何打开log.config文件? [英] How to open a log.config file if I use log4net (version 1.2.13.0) ?
本文介绍了如果我使用log4net(版本1.2.13.0),如何打开log.config文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道如何打开文件log.config?
我读到需要在AssemblyInfo.cs文件中添加以下行:
[assembly:log4net.Config.XmlConfigurator(ConfigFile =Web.config,Watch = true)]
但它不起作用!我有log4net的版本1.2.13.0。
我想打开这个文件来放置我想写日志步骤的文件的路径。
有人可以帮我吗
I don't know how to open the file log.config ?
I read that need to add below line in our AssemblyInfo.cs file :
[assembly: log4net.Config.XmlConfigurator(ConfigFile="Web.config", Watch=true)]
but it doesn't work ! I have version 1.2.13.0 for log4net.
I want to open this file to put the path of the file that I want to write my log step .
Can someone help me please
推荐答案
试试这些CodeProject文章:
log4net教程 [ ^ ]
为桌面和Web应用程序配置Log4Net [ ^ ]
在ASP.NET 2.0中配置Log4Net [ ^ ]
Try these CodeProject articles:
log4net Tutorial[^]
Configure Log4Net for Desktop and Web Applications[^]
Configure Log4Net in ASP.NET 2.0[^]
这篇关于如果我使用log4net(版本1.2.13.0),如何打开log.config文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文