public static void Log(string LogMsg) { string s; s = $"{_ThisTime.ToString(DateFormat)} - {LogMsg}"; if (DisplayLogOn) { System.Console.WriteLine(s); } if (!String.IsNullOrEmpty(_LogFile)) { FileFunctions.AppendTextStream(_LogFile, s); } }
private static void logIt(string FileName) { string s; s = $"{_ThisTime.ToString(DateFormat)} {calcElapsedTime()} - {_ThisEvent}"; if (DisplayOn) { System.Console.WriteLine(s); } if (TraceOn) { FileFunctions.AppendTextStream(FileName, s); } }