Fixed logging to gui (removed date), file log will keep the log date

This commit is contained in:
szporowolik
2019-10-21 15:34:46 +02:00
parent 38853937be
commit 1a73404c4c

View File

@@ -13,10 +13,10 @@ internal class PerunHelper
} }
// Add new entry // 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 // 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 // Update control at my window
Globals.bGUILogHistoryUpdate = true; Globals.bGUILogHistoryUpdate = true;