在1个解决方案文件中为多个项目实施log 4 net [英] Implement log 4 net for multiple projects in 1 solution file

查看:67
本文介绍了在1个解决方案文件中为多个项目实施log 4 net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在1个解决方案文件中有多个项目.
每个都有自己的app.config文件
我想在此项目上实现log4net,

现在应该将config 4 app.config添加到所有项目中,或者仅添加到任何一个或将要在第1个执行的项目中.

I have multiple projects in 1 solution file.
each has its own app.config file
I want to implement log4net on this project ,

Now the config 4 app.config should be added to all the projects or just any 1 or the projects that''s gonna be executed 1st?

推荐答案

您正在加载的应用程序(EXE)应该设置log4net配置,并且您只需要在其他项目中使用log4net(无需其他配置)即可.
Your loading application (EXE) should setup the log4net configuration, and you just use log4net as is in your other projects (no more configuration).


这篇关于在1个解决方案文件中为多个项目实施log 4 net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆