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

# Line 42 | Line 42 | namespace RomCheater.Logging
42              sw = new StreamWriter(ms);
43              sw.AutoFlush = true;
44              sr = new StreamReader(ms);
45
46            FileInfo fi = new FileInfo(LOG_PATH);
47            if (fi.Exists)
48                fi.Delete();
49
45          }
46          private LogStream _Log;
47          public LogStream Log { get { return _Log; } private set { _Log = value; } }
# Line 160 | Line 155 | namespace RomCheater.Logging
155                  throw new InvalidOperationException("Please use SetLogText(string value)");
156              }
157          }
158 <
158 >        public void CreateNewLog()
159 >        {
160 >            FileInfo fi = new FileInfo(LOG_PATH);
161 >            if (fi.Exists)
162 >                fi.Delete();
163 >        }
164          public void Clear()
165          {
166              Clear(false);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines