创建Log4net文件 [英] Creating Log4net files
本文介绍了创建Log4net文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我添加了log4net.dll作为对我的项目的引用,并且添加了log4net.dll和
将log4net.xml放入我的bin目录.
现在,我想创建一个log4net.config文件.
我不知道如何创建配置文件.
有人请帮我.
谢谢.
Hello,
I added log4net.dll as a reference to my project and I added log4net.dll and
log4net.xml to my bin directory.
Now I want to create a log4net.config file.
i dont know how to create a config file.
Someone please help me with this.
Thank you.
推荐答案
您不需要创建单独的配置文件.您可以将其添加到您的应用程序或Web配置文件中.看看此 [
You don''t need to create a separate configuration file. You can just add it into your application or web config file. Take a look at this[^] web.config file to get an idea on how to do this.
出于什么目的需要配置文件
for what purpose the config file is required
这篇关于创建Log4net文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文