ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.Logging/LogWriter.cs
(Generate patch)

Comparing trunk/RomCheater.Logging/LogWriter.cs (file contents):
Revision 21 by william, Wed May 9 08:41:36 2012 UTC vs.
Revision 22 by william, Wed May 9 08:43:52 2012 UTC

--- trunk/RomCheater.Logging/LogWriter.cs	2012/05/09 08:42:07	21
+++ trunk/RomCheater.Logging/LogWriter.cs	2012/05/09 08:43:52	22
@@ -42,11 +42,6 @@ namespace RomCheater.Logging
             sw = new StreamWriter(ms);
             sw.AutoFlush = true;
             sr = new StreamReader(ms);
-
-            FileInfo fi = new FileInfo(LOG_PATH);
-            if (fi.Exists)
-                fi.Delete();
-
         }
         private LogStream _Log;
         public LogStream Log { get { return _Log; } private set { _Log = value; } }
@@ -160,7 +155,12 @@ namespace RomCheater.Logging
                 throw new InvalidOperationException("Please use SetLogText(string value)");
             }
         }
-
+        public void CreateNewLog()
+        {
+            FileInfo fi = new FileInfo(LOG_PATH);
+            if (fi.Exists)
+                fi.Delete();
+        }
         public void Clear()
         {
             Clear(false);