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 { } }
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 { } }
public override void Execute(string[] args) { string text = DebugUtility.GetDebugInformation(); App.Logger.Log(text); }