What methods were reported as being depreciated when you compiled in
2.0?

BuildDefaultLoggerFactoryAdapter() is in the SVN version of IBatisNet.
If you are using the version in SVN, you'll need to add some additional
code to your web.config:

<sectionGroup name="iBATIS">
<section name="logging"
type="IBatisNet.Common.Logging.ConfigurationSectionHandler,
IBatisNet.Common" />
</sectionGroup> 

<iBATIS>
<logging>
<logFactoryAdapter type="IBatisNet.Common.Logging.Impl.Log4NetLoggerFA,
IBatisNet.Common.Logging.Log4Net">
<arg key="configType" value="external" />
</logFactoryAdapter>
</logging>              
</iBATIS>

This file gives more detail on where those nodes need to be:

http://tinyurl.com/asj7m
http://svn.apache.org/repos/asf/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/IBatisNet.DataMapper.Test.dll.config

--- Okku Touronen <[EMAIL PROTECTED]> wrote:

> Thanks for the answer, but I think I have fixed it or rather hacked
> it.
> 
> I think the problem is due to that I have compiled iBatis with v2.0
> of the
> .NET framework, and they have done something with the config stuff
> between
> 1.1 and 2.0, deprecated some methods.
> 
> Just to get the log up an running so I can continue with my project I
> changed the BuildDefaultLoggerFactoryAdapter() to return a log4net
> factory
> as default.
> 
> All works fine but I don't seem to get any result sets in my log? (as
> in
> iBatis for Java).
> 
> /Okku
> 
> -----Original Message-----
> From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] 
> Sent: den 26 september 2005 14:54
> To: [email protected]
> Subject: Re: logging in ASP.NET 2.0
> 
> 
> Check the permissions for log.txt.  Maybe you should look at this
> thread:
> 
> http://www.mail-archive.com/[email protected]/msg00261.html 
> 
> or look at one of the many discussions on log4net:
> 
> http://www.mail-archive.com/[email protected]/
> 
> 
> >  -------Original Message-------
> >  From: Okku Touronen <[EMAIL PROTECTED]>
> >  Subject: logging in ASP.NET 2.0
> >  Sent: 26 Sep '05 04:10
> >  
> >  Hello, I have not succeeded to get any log output from iBatisin my
> ASP.NET
> >  2.0 applications.
> >  
> >  
> >  I use the log4net framework.
> >  
> >  My own logging statements are outputted. And when I run
> theapplication as
> >  a windows form application the iBatis log output works.
> >  
> >  I have the web.config set up as:
> >  
> >  
> >  <log4net>
> >  
> >  <!-- Define some output appenders -->
> >  
> >  <appender name="RollingLogFileAppender"
> >  type="log4net.Appender.RollingFileAppender">
> >  
> >  <param name="File" value="log.txt"/>
> >  
> >  <param name="AppendToFile" value="true"/>
> >  
> >  <param name="MaxSizeRollBackups" value="2"/>
> >  
> >  <param name="MaximumFileSize" value="110KB"/>
> >  
> >  <param name="RollingStyle" value="Size"/>
> >  
> >  <param name="StaticLogFileName" value="true"/>
> >  
> >  <layout type="log4net.Layout.PatternLayout">
> >  
> >  <param name="Header" value="[Header]\r\n"/>
> >  
> >  <param name="Footer" value="[Footer]\r\n"/>
> >  
> >  <param name="ConversionPattern" value="%d [%t]
> >  %-5p %c [%x] - %m%n"/>
> >  
> >  </layout>
> >  
> >  </appender>
> >  
> >  <appender name="ConsoleAppender"
> >  type="log4net.Appender.ConsoleAppender">
> >  
> >  <layout type="log4net.Layout.PatternLayout">
> >  
> >  <param name="ConversionPattern" value="%d [%t]
> >  %-5p %c [%x] <%X{auth}> - %m%n"/>
> >  
> >  </layout>
> >  
> >  </appender>
> >  
> >  <!-- OFF, FATAL, ERROR, WARN, INFO, DEBUG, ALL -->
> >  
> >  <!-- Set root logger level to ERROR and its appenders -->
> >  
> >  <root>
> >  
> >  <level value="ALL"/>
> >  
> >  <appender-ref ref="RollingLogFileAppender"/>
> >  
> >  <appender-ref ref="ConsoleAppender"/>
> >  
> >  </root>
> >  
> >  <!-- Print only messages of level DEBUG or above in
> &gt;  thepackages -->
> >  
> >  <logger
> >  name="IBatisNet.DataMapper.Commands.DefaultPreparedCommand">
> >  
> >  <level value="ALL"/>
> >  
> >  </logger>
> >  
> >  <logger
> >  name="IBatisNet.DataMapper.Configuration.Cache.CacheModel">
> >  
> >  <level value="ALL"/>
> >  
> >  </logger>
> >  
> >  <logger name="IBatisNet.DataMapper.LazyLoadList">
> >  
> >  <level value="ALL"/>
> >  
> >  </logger>
> >  
> >  <logger name="IBatisNet.DataMapper.SqlMapSession">
> >  
> >  <level value="ALL"/>
> >  
> >  </logger>
> >  
> >  <logger name="IBatisNet.Common.Transaction.TransactionScope">
> >  
> >  <level value="ALL"/>
> >  
> >  </logger>
> >  
> >  <logger name="IBatisNet.DataAccess.DaoSession">
> >  
> >  <level value="ALL"/>
> >  
> >  </logger>
> >  
> >  <logger name="IBatisNet.DataAccess.Configuration.DaoProxy">
> >  
> >  <level value="ALL"/>
> >  
> >  </logger>
> >  
> >  <logger
> >
>
name="IBatisNet.DataMapper.Configuration.Statements.PreparedStatementFactory
> ">
> >  
> >  <level value="ALL"/>
> >  
> >  </logger>
> >  
> >  <logger name="IBatisNet.DataMapper.Commands.IPreparedCommand">
> >  
> >  <level value="ALL"/>
> >  
> >  </logger>
> >  
> >  </log4net>
> >  
> >  
> >  Any clues anyone?
> >  
> >  
> >  Regards OkkuTouronen
> 
> 
> 
> 

Reply via email to