private static void SaveToCrashException(Exception e)
 {
     try
     {
         using (StreamWriter writer = new StreamWriter("crash.txt", true))
         {
             writer.WriteLine(DebugUtility.GetDebugInformation());
             writer.WriteLine();
             writer.WriteLine(e);
         }
     }
     catch { }
 }
Beispiel #2
0
 private static void SaveToCrashException(Exception e)
 {
     try
     {
         using (StreamWriter writer = new StreamWriter(Path.Combine(AppConfig.ExeDirectory, "crash.txt"), true))
         {
             writer.WriteLine(DebugUtility.GetDebugInformation());
             writer.WriteLine();
             writer.WriteLine(e);
         }
     }
     catch { }
 }
Beispiel #3
0
        public override void Execute(string[] args)
        {
            string text = DebugUtility.GetDebugInformation();

            App.Logger.Log(text);
        }