ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Kierstead <br...@fluidmedia.com>
Subject log4net and versions 1.3/1.7
Date Thu, 12 Jan 2006 20:09:15 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Can anyone explain to me why is meant by the new version not having
a dependency on log4net?&nbsp; I'm getting a little confused when reading
the docs and readme files.&nbsp; 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):<br>
<br>
<tt>Added custom logger support (remove dependcy on log4net), IBATIS
now need a custom section in your application config file<br>
</tt>
<blockquote><tt><small>&nbsp;&nbsp;&nbsp; Exemple (for log4NET)
:</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &lt;configSections&gt;</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;sectionGroup
name="iBATIS"&gt;</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;section name="logging"
type="IBatisNet.Common.Logging.ConfigurationSectionHandler,
IBatisNet.Common" /&gt;</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/sectionGroup&gt;&nbsp;&nbsp;&nbsp;
</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;section
name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /&gt;</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &lt;/configSections&gt;</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; </small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &lt;iBATIS&gt;</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;logging&gt;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; </small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;logFactoryAdapter
type="IBatisNet.Common.Logging.Impl.Log4NetLoggerFA,
IBatisNet.Common.Logging.Log4Net"&gt;</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;arg key="configType" value="inline"
/&gt;</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;/logFactoryAdapter&gt;</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/logging&gt;</small></tt><br>
  <tt><small>&nbsp;&nbsp;&nbsp; &lt;/iBATIS&gt;</small></tt><br>
</blockquote>
<tt><br>
</tt>How is this removing the dependancy on log4net?&nbsp; 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):<br>
<br>
<blockquote>
  <p><small><tt>The core DataAccess framework has external dependencies
on </tt></small></p>
  <div class="orderedlist">
  <ol type="1">
    <li><small><tt><code class="filename">Castle.DynamicProxy.dll</code>
(creating proxies) </tt></small></li>
    <li><tt><small><code class="filename">log4net.dll</code>
(logging)</small>
      </tt></li>
  </ol>
  </div>
</blockquote>
<br>
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?<br>
<br>
Thanks,<br>
Brian<br>
</body>
</html>


Mime
View raw message