From 60dbb5b92d7767885b1b35029c99a3d4919d82a6 Mon Sep 17 00:00:00 2001 From: chylex <info@chylex.com> Date: Sat, 16 May 2015 14:34:12 +0200 Subject: [PATCH] Added PID to logging --- BackupEssentials/App.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BackupEssentials/App.xaml.cs b/BackupEssentials/App.xaml.cs index 84b4f9c..f16d2e4 100644 --- a/BackupEssentials/App.xaml.cs +++ b/BackupEssentials/App.xaml.cs @@ -136,6 +136,8 @@ namespace BackupEssentials{ using(StreamWriter writer = new StreamWriter(fileStream)){ writer.Write("["); writer.Write(Sys.Settings.Default.DateFormat.ParseDate(DateTime.Now)); + writer.Write("]["); + writer.Write(Process.GetCurrentProcess().Id); writer.Write("] "); writer.WriteLine(data); }