log4net不同版本的问题

guag guag 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我们的Web Application引用了其他公司的组件,这个组建中使用log4net是framework1.1版本,我们的web application使用.net2.0, 也是用了log4net版本是1.2.10和Common.Logging。我们的web application对log4net的配置,不能够管理到其他公司的那个组件.请问该怎么解决这个问题?

<configSections>
<section name="log4net" type="System.Configuration.IgnoreSectionHandler"/>
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging"/>
</sectionGroup>
</configSections>
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net">
<arg key="configType" value="FILE-WATCH" />
<arg key="configFile" value="~/log4net.xml" />
</factoryAdapter>
</logging>
</common>
...全文
评论 2
收藏 已收藏
分享
返回顶部
guag
.NET社区 62,271 成员 668,968 内容