From a4c64fb31cda4c668efe1e772f8847f49def2bc3 Mon Sep 17 00:00:00 2001 From: chylex <info@chylex.com> Date: Tue, 7 Apr 2015 21:30:20 +0200 Subject: [PATCH] Added exception printing into a text file --- BackupEssentials/App.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BackupEssentials/App.xaml.cs b/BackupEssentials/App.xaml.cs index 0b71c22..e90ce0e 100644 --- a/BackupEssentials/App.xaml.cs +++ b/BackupEssentials/App.xaml.cs @@ -50,6 +50,10 @@ namespace BackupEssentials{ } private void HandleException(object sender, DispatcherUnhandledExceptionEventArgs e){ + using(StreamWriter writer = new StreamWriter(new FileStream("exceptions.log",FileMode.Append))){ + writer.WriteLine(e.ToString()); + } + // TODO } }