Author: rgrabowski
Date: Tue Jul  5 07:11:38 2005
New Revision: 209274

URL: http://svn.apache.org/viewcvs?rev=209274&view=rev
Log:
Added "file-watch" configurationType that calls ConfigureAndWatch instead of 
Configure

Modified:
    ibatis/trunk/cs/mapper/IBatisNet.Common/Logging/Impl/Log4NetLoggerFA.cs

Modified: 
ibatis/trunk/cs/mapper/IBatisNet.Common/Logging/Impl/Log4NetLoggerFA.cs
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.Common/Logging/Impl/Log4NetLoggerFA.cs?rev=209274&r1=209273&r2=209274&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.Common/Logging/Impl/Log4NetLoggerFA.cs 
(original)
+++ ibatis/trunk/cs/mapper/IBatisNet.Common/Logging/Impl/Log4NetLoggerFA.cs Tue 
Jul  5 07:11:38 2005
@@ -56,7 +56,7 @@
                                configurationFile = properties["configFile"];   
                
                        }
 
-                       if ( configurationType == "FILE" )
+                       if ( configurationType == "FILE" || configurationType 
== "FILE-WATCH" )
                        {
                                if ( configurationFile == string.Empty )
                                        throw new ConfigurationException( 
"Configration property 'configurationFile' must be set for log4Net 
configuration of type 'FILE'."  );
@@ -72,6 +72,9 @@
                                        break;
                                case "FILE":
                                        DOMConfigurator.Configure( new 
FileInfo( configurationFile ) );
+                                       break;
+                               case "FILE-WATCH":
+                                       DOMConfigurator.ConfigureAndWatch( new 
FileInfo( configurationFile ) );
                                        break;
                                default:
                                        BasicConfigurator.Configure();


Reply via email to