You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by ma...@bnpparibas.com on 2005/09/05 16:48:55 UTC

Log4Net and Last version of iBatis

Hi

I get the source code from SVN to fix bug JIRA 102 but there is breaking
change with Log4Net.

How can i configure section "iBATIS/logging" to use log4net ?

Thanks and Regard



This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

Re: Log4Net and Last version of iBatis

Posted by Ron Grabowski <ro...@yahoo.com>.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <configSections>
  <sectionGroup name="iBATIS">
   <section name="logging"
type="IBatisNet.Common.Logging.ConfigurationSectionHandler,
IBatisNet.Common" />
  </sectionGroup>	
 </configSections>
 <iBATIS>
  <logging>
   <logFactoryAdapter
type="IBatisNet.Common.Logging.Impl.Log4NetLoggerFA, IBatisNet.Common">
    <arg key="configType" value="external" />
   </logFactoryAdapter>
  </logging>
 </iBATIS>
</configuration>

When you use the "external" configType you have to call Configure
yourself:

 log4net.Config.XmlConfigurator.ConfigureAndWatch(
  new System.IO.FileInfo(
  AppDomain.CurrentDomain.SetupInformation.ApplicationBase +
  "log4net.config"));

--- marc.aubry@bnpparibas.com wrote:

> 
> Hi
> 
> I get the source code from SVN to fix bug JIRA 102 but there is
> breaking
> change with Log4Net.
> 
> How can i configure section "iBATIS/logging" to use log4net ?
> 
> Thanks and Regard
> 
> 
> 
> This message and any attachments (the "message") is
> intended solely for the addressees and is confidential. 
> If you receive this message in error, please delete it and 
> immediately notify the sender. Any use not in accord with 
> its purpose, any dissemination or disclosure, either whole 
> or partial, is prohibited except formal approval. The internet
> can not guarantee the integrity of this message. 
> BNP PARIBAS (and its subsidiaries) shall (will) not 
> therefore be liable for the message if modified. 
> 
>                 ---------------------------------------------
> 
> Ce message et toutes les pieces jointes (ci-apres le 
> "message") sont etablis a l'intention exclusive de ses 
> destinataires et sont confidentiels. Si vous recevez ce 
> message par erreur, merci de le detruire et d'en avertir 
> immediatement l'expediteur. Toute utilisation de ce 
> message non conforme a sa destination, toute diffusion 
> ou toute publication, totale ou partielle, est interdite, sauf 
> autorisation expresse. L'internet ne permettant pas 
> d'assurer l'integrite de ce message, BNP PARIBAS (et ses
> filiales) decline(nt) toute responsabilite au titre de ce 
> message, dans l'hypothese ou il aurait ete modifie.
>