/[RomCheater]/trunk/RomCheater.Logging/LogWriter.cs
ViewVC logotype

Diff of /trunk/RomCheater.Logging/LogWriter.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- 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 @@
             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 @@
                 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);

 

  ViewVC Help
Powered by ViewVC 1.1.22