ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Bayon <ibatis....@gmail.com>
Subject Re: log4net and versions 1.3/1.7
Date Fri, 13 Jan 2006 18:34:50 GMT
The Data Access guide is missing the new logging configuration and
explanation but you can take a look in the Data Mapper guide which is
updated (4.5. Logging SqlMap Activity). The explanation apply also to the a
Access component.

-Gilles


On 1/12/06, Brian Kierstead <brian@fluidmedia.com> wrote:
>
> Can anyone explain to me why is meant by the new version not having a
> dependency on log4net?  I'm getting a little confused when reading the docs
> and readme files.  In the changelog.txt file under the
> IBatisNet.DataMapper-bin-1.3.0 directory it says (it has a similar file in
> the DataAccess directory which says the same thing):
>
> Added custom logger support (remove dependcy on log4net), IBATIS now need
> a custom section in your application config file
>
>     Exemple (for log4NET) :
>     <configSections>
>         <sectionGroup name="iBATIS">
>             <section name="logging" type="
> IBatisNet.Common.Logging.ConfigurationSectionHandler, IBatisNet.Common" />
>         </sectionGroup>
>         <section name="log4net" type="
> log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
>     </configSections>
>
>     <iBATIS>
>         <logging>
>             <logFactoryAdapter type="
> IBatisNet.Common.Logging.Impl.Log4NetLoggerFA,
> IBatisNet.Common.Logging.Log4Net">
>                 <arg key="configType" value="inline" />
>             </logFactoryAdapter>
>         </logging>
>     </iBATIS>
>
>
> How is this removing the dependancy on log4net?  Its still in there... And
> in the documentation for the data access, under 'Setup the Distribution' it
> says that you need to include log4net (it doesn't say this in the mapper
> help file):
>
>  The core DataAccess framework has external dependencies on
>
>    1. Castle.DynamicProxy.dll (creating proxies)
>    2. log4net.dll (logging)
>
>
> So do we need it or not? Or do you only need to include it in the
> web.config if it you want the logging to be used?
>
> Thanks,
> Brian
>

Mime
View raw message