Author: alanmc
Date: 2008-02-02 13:28:58 -0500 (Sat, 02 Feb 2008)
New Revision: 94640

Modified:
   trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/ChangeLog
   trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Logger.cs
Log:
* MonoTorrent.Client/Logger.cs: Add a 'Flush' method

Modified: trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/ChangeLog
===================================================================
--- trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/ChangeLog 2008-02-02 
17:28:43 UTC (rev 94639)
+++ trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/ChangeLog 2008-02-02 
18:28:58 UTC (rev 94640)
@@ -1,5 +1,9 @@
 2008-02-02  Alan McGovern <[EMAIL PROTECTED]> 
 
+       * Logger.cs: Add a 'Flush' method
+
+2008-02-02  Alan McGovern <[EMAIL PROTECTED]> 
+
        * ClientEngine.cs: Cleaned up some of my method firing goodness
 
 2008-02-02  Alan McGovern <[EMAIL PROTECTED]> 

Modified: trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Logger.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Logger.cs 2008-02-02 
17:28:43 UTC (rev 94639)
+++ trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Logger.cs 2008-02-02 
18:28:58 UTC (rev 94640)
@@ -24,6 +24,12 @@
             lock (listeners)
                 listeners.Add(listener);
         }
+               
+               public static void Flush()
+               {
+                       lock (listeners)
+                               listeners.ForEach (delegate (TraceListener l) { 
l.Flush(); } );
+               }
         /*
         internal static void Log(PeerIdInternal id, string message)
         {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to