Example #1
0
 public static void StopLog()
 {
     try
     {
         if (Enabled)
         {
             Log("log", $"Recording session stopped @ {DateTime.Now}");
             file.Stop();
         }
     }
     finally { file = null; logcnt = 0; }
 }
Example #2
0
 public static void StartLog(string filename)
 {
     try
     {
         if (filename != null)
         {
             StopLog();
             file = new AsyncLogFile(filename, 0);
             Log("log", $"Recording session started @ {DateTime.Now}");
         }
     }
     catch { }
 }