You might also want to try creating a new logger for IBATIS in your
log4net config:
<logger name="IBatisNet">
<appender-ref ref="RollingFileAppender" />
</logger>
________________________________
From: Jose Selesan [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2008 2:41 AM
To: [email protected]
Subject: Re: iBatis.Net and log4net
Nop... I didn't think it. Today I will try putting in my bin that dll
and also the log4net assembly shipped with iBatis
Thanks for your time
On Thu, Nov 20, 2008 at 1:48 AM, Ron Grabowski <[EMAIL PROTECTED]>
wrote:
Is IBatisNet.Common.Logging.Log4Net in your /bin directory?
________________________________
From: Jose Selesan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, November 19, 2008 3:02:54 PM
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