Date is now always displayed in default foreground color.

servicizing
Sean McArdle 2016-03-29 13:54:30 -07:00
parent 55f4a9f8ff
commit 80baf60e97
1 changed files with 3 additions and 2 deletions

View File

@ -127,9 +127,10 @@ namespace WifiSitter
public static void LogLine(ConsoleColor color, params string[] msg) {
if (msg.Length == 0) return;
Console.ForegroundColor = color;
string log = msg.Length > 0 ? String.Format(msg[0], msg.Skip(1).ToArray()) : msg[0];
Console.WriteLine("{0} {1}", DateTime.Now.ToString(), log);
Console.Write(DateTime.Now.ToString());
Console.ForegroundColor = color;
Console.WriteLine(" {0}", log);
Console.ResetColor();
}