I had the same issue and found that there is a special log4net dll that ships 
with iBatis that I had to include and then it all worked.

-J

From: Jose Selesan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 1:03 PM
To: [email protected]
Subject: iBatis.Net and log4net

Hi people. I'm using log4net for my application logs and I would like to use it 
for iBatis too. As the documentation ask, I configured the log like this:
<iBATIS>
  <logging>
      <logFactoryAdapter type="IBatisNet.Common.Logging.Impl.Log4NetLoggerFA, 
IBatisNet.Common.Logging.Log4Net">
              <arg key="configType" value="external" />
      </logFactoryAdapter>
  </logging>
</iBATIS>

I used configType=external because my application is configuring log4net at 
global.asax, but it does not log any sql statemant. I have a root appender with 
level = ALL and my application is logging ok.

Any ideas?
thanks

Reply via email to