From 1a73404c4c59b81da97f55f82f349bc60b5cd021 Mon Sep 17 00:00:00 2001 From: szporowolik Date: Mon, 21 Oct 2019 15:34:46 +0200 Subject: [PATCH] Fixed logging to gui (removed date), file log will keep the log date --- 02_Windows_App/Perun_v1/01_Classes/PerunHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02_Windows_App/Perun_v1/01_Classes/PerunHelper.cs b/02_Windows_App/Perun_v1/01_Classes/PerunHelper.cs index 62119a2..4760e3f 100644 --- a/02_Windows_App/Perun_v1/01_Classes/PerunHelper.cs +++ b/02_Windows_App/Perun_v1/01_Classes/PerunHelper.cs @@ -13,10 +13,10 @@ internal class PerunHelper } // Add new entry - arrLogHistory[arrLogHistory.Length - 1] = DateTime.Now.ToString("yyyy-dd-MM HH:mm:ss") + " > " + strEntryToAdd; // Add entry at the last position + arrLogHistory[arrLogHistory.Length - 1] = DateTime.Now.ToString("HH:mm:ss") + " > " + strEntryToAdd; // Add entry at the last position // Add the entry to log file - LogController.WriteLog(arrLogHistory[arrLogHistory.Length - 1]); + LogController.WriteLog(DateTime.Now.ToString("yyyy-dd-MM ") + arrLogHistory[arrLogHistory.Length - 1]); // Update control at my window Globals.bGUILogHistoryUpdate = true;