[待解决问题] log4net不同版本问题
提问时间: 2008-04-29 11:27
该问题已到期 浏览:113 次

我们的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>


提问者:荡秋千 - 初学一级
所有回答(1)
将两个log4net.dll注册到gac里。
目前我们做的 web application 用到了3个log4net。^_^!

3天前   回答者:yahle - 初学一级
   您需要登录以后才能回答!
我的问题    我要提问


快到期问题

> 问题排行榜

有不合适内容,建议去除