You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2006/06/06 20:43:42 UTC
svn commit: r412187 - in /ibatis/trunk/cs/mapper:
IBatisNet.Common.Test/IBatisNet.Common.Test.2005.csproj
IBatisNet.Common/AssemblyInfo.cs IBatisNet.Common/ChangeLog.txt
IBatisNet.Common/Logging/LogManager.cs IBatisNet.DataMapper/ChangeLog.txt
Author: gbayon
Date: Tue Jun 6 11:43:42 2006
New Revision: 412187
URL: http://svn.apache.org/viewvc?rev=412187&view=rev
Log:
- Added unit tests in VS 2006 solution
- Fixed IBATISNET-145
Modified:
ibatis/trunk/cs/mapper/IBatisNet.Common.Test/IBatisNet.Common.Test.2005.csproj
ibatis/trunk/cs/mapper/IBatisNet.Common/AssemblyInfo.cs
ibatis/trunk/cs/mapper/IBatisNet.Common/ChangeLog.txt
ibatis/trunk/cs/mapper/IBatisNet.Common/Logging/LogManager.cs
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt
Modified: ibatis/trunk/cs/mapper/IBatisNet.Common.Test/IBatisNet.Common.Test.2005.csproj
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.Common.Test/IBatisNet.Common.Test.2005.csproj?rev=412187&r1=412186&r2=412187&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.Common.Test/IBatisNet.Common.Test.2005.csproj (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.Common.Test/IBatisNet.Common.Test.2005.csproj Tue Jun 6 11:43:42 2006
@@ -138,6 +138,7 @@
<Compile Include="NUnit\CommonTests\Utilities\ObjectFactoryTest.cs" />
<Compile Include="NUnit\CommonTests\Utilities\PropertyAccessorPerformance.cs" />
<Compile Include="NUnit\CommonTests\Utilities\PropertyAccessorTest.cs" />
+ <Compile Include="NUnit\CommonTests\Utilities\ReflectionInfoTest.cs" />
<Compile Include="NUnit\CommonTests\Utilities\ResourcesTest.cs">
<SubType>Code</SubType>
</Compile>
Modified: ibatis/trunk/cs/mapper/IBatisNet.Common/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.Common/AssemblyInfo.cs?rev=412187&r1=412186&r2=412187&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.Common/AssemblyInfo.cs (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.Common/AssemblyInfo.cs Tue Jun 6 11:43:42 2006
@@ -3,5 +3,5 @@
[assembly: AssemblyTitle("iBATIS.Common")]
[assembly: AssemblyDescription("Common object used by DataAccess and DataMapper component in iBATIS.Net")]
-[assembly: AssemblyVersion("1.3")]
+[assembly: AssemblyVersion("1.4")]
Modified: ibatis/trunk/cs/mapper/IBatisNet.Common/ChangeLog.txt
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.Common/ChangeLog.txt?rev=412187&r1=412186&r2=412187&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.Common/ChangeLog.txt (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.Common/ChangeLog.txt Tue Jun 6 11:43:42 2006
@@ -4,6 +4,7 @@
1.4 - xx/xx/xxxx
------------------------------
+- Fixed IBATISNET-145
------------------------------
1.3 - 15/12/2005
Modified: ibatis/trunk/cs/mapper/IBatisNet.Common/Logging/LogManager.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.Common/Logging/LogManager.cs?rev=412187&r1=412186&r2=412187&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.Common/Logging/LogManager.cs (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.Common/Logging/LogManager.cs Tue Jun 6 11:43:42 2006
@@ -2,7 +2,7 @@
#region Apache Notice
/*****************************************************************************
* $Header: $
- * $Revision: $
+ * $Revision$
* $Date$
*
* iBATIS.NET Data Mapper
@@ -25,10 +25,7 @@
#endregion
using System;
-using System.Collections;
-using System.Collections.Specialized;
using System.Configuration;
-using System.Xml;
using IBatisNet.Common.Logging.Impl;
namespace IBatisNet.Common.Logging
@@ -55,10 +52,12 @@
private LogManager()
{ }
- /// <summary>
- ///
- /// </summary>
- private static ILoggerFactoryAdapter Adapter
+
+ /// <summary>
+ /// Gets or sets the adapter.
+ /// </summary>
+ /// <value>The adapter.</value>
+ public static ILoggerFactoryAdapter Adapter
{
get
{
@@ -74,32 +73,43 @@
}
return _adapter;
}
+ set
+ {
+ lock (_loadLock)
+ {
+ _adapter = value;
+ }
+ }
+
}
- /// <summary>
- ///
- /// </summary>
- /// <param name="type"></param>
- /// <returns></returns>
+
+ /// <summary>
+ /// Gets the logger.
+ /// </summary>
+ /// <param name="type">The type.</param>
+ /// <returns></returns>
public static ILog GetLogger( Type type )
{
return Adapter.GetLogger( type );
}
- /// <summary>
- ///
- /// </summary>
- /// <param name="name"></param>
- /// <returns></returns>
+
+ /// <summary>
+ /// Gets the logger.
+ /// </summary>
+ /// <param name="name">The name.</param>
+ /// <returns></returns>
public static ILog GetLogger( string name )
{
return Adapter.GetLogger(name);
}
- /// <summary>
- ///
- /// </summary>
- /// <returns></returns>
+
+ /// <summary>
+ /// Builds the logger factory adapter.
+ /// </summary>
+ /// <returns></returns>
private static ILoggerFactoryAdapter BuildLoggerFactoryAdapter()
{
LogSetting setting = null;
@@ -173,18 +183,14 @@
return instance;
}
- /// <summary>
- ///
- /// </summary>
- /// <returns></returns>
+
+ /// <summary>
+ /// Builds the default logger factory adapter.
+ /// </summary>
+ /// <returns></returns>
private static ILoggerFactoryAdapter BuildDefaultLoggerFactoryAdapter()
{
-#if dotnet2
- ILoggerFactoryAdapter simpleLogFactory = new ConsoleOutLoggerFA(new NameValueCollection(StringComparer.InvariantCultureIgnoreCase));
-#else
- ILoggerFactoryAdapter simpleLogFactory = new ConsoleOutLoggerFA(new NameValueCollection( null, new CaseInsensitiveComparer() ));
-#endif
- return simpleLogFactory;
+ return new NoOpLoggerFA();
}
}
}
Modified: ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt?rev=412187&r1=412186&r2=412187&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.DataMapper/ChangeLog.txt Tue Jun 6 11:43:42 2006
@@ -6,6 +6,7 @@
Issues
- IBATISNET-158 : Add support for generic type in TypeAssemblyInfo
- IBATISNET-151 : Pre-load stored procedure parameters should use the already-open connection
+- IBATISNET-145 : Make NoOpLoggerFA the default logger when logging config is missing or malformed. Allow FactoryAdapter to be set by the application
- IBATISNET-143 : Allow selectKey node to process dynamic sql
- IBATISNET-141 : DataMapper Developer Guide document bug
- IBATISNET-139 : DBNull.Value as parameter object raises NullReferenceException in UnknownTypeHandler