logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1171559 - /logging/log4net/trunk/src/Appender/RollingFileAppender.cs
Date Fri, 16 Sep 2011 13:45:33 GMT
Author: bodewig
Date: Fri Sep 16 13:45:32 2011
New Revision: 1171559

URL: http://svn.apache.org/viewvc?rev=1171559&view=rev
Log:
Compact framework doesn't have GetlastWriteTimeUtc either

Modified:
    logging/log4net/trunk/src/Appender/RollingFileAppender.cs

Modified: logging/log4net/trunk/src/Appender/RollingFileAppender.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Appender/RollingFileAppender.cs?rev=1171559&r1=1171558&r2=1171559&view=diff
==============================================================================
--- logging/log4net/trunk/src/Appender/RollingFileAppender.cs (original)
+++ logging/log4net/trunk/src/Appender/RollingFileAppender.cs Fri Sep 16 13:45:32 2011
@@ -239,7 +239,7 @@ namespace log4net.Appender
 
 		#region Public Instance Properties
 
-#if !NET_1_0 && !CLI_1_0
+#if !NET_1_0 && !CLI_1_0 && !NETCF
         /// <summary>
 		/// Gets or sets the strategy for determining the current date and time. The default
 		/// implementation is to use LocalDateTime which internally calls through to DateTime.Now.

@@ -796,7 +796,7 @@ namespace log4net.Appender
 				{
 					DateTime last;
 					using(SecurityContext.Impersonate(this)) {
-#if !NET_1_0 && !CLI_1_0
+#if !NET_1_0 && !CLI_1_0 && !NETCF
                         if (DateTimeStrategy is UniversalDateTime)
 						{
 							last = System.IO.File.GetLastWriteTimeUtc(m_baseFileName);
@@ -805,7 +805,7 @@ namespace log4net.Appender
 						{
 #endif
 							last = System.IO.File.GetLastWriteTime(m_baseFileName);
-#if !NET_1_0 && !CLI_1_0
+#if !NET_1_0 && !CLI_1_0 && !NETCF
                         }
 #endif
                     }
@@ -1696,7 +1696,7 @@ namespace log4net.Appender
 			}
 		}
 
-#if !NET_1_0 && !CLI_1_0
+#if !NET_1_0 && !CLI_1_0 && !NETCF
         /// <summary>
 		/// Implementation of <see cref="IDateTime"/> that returns the current time as the
coordinated universal time (UTC).
 		/// </summary>



Mime
View raw message