Date is now always displayed in default foreground color.
parent
55f4a9f8ff
commit
80baf60e97
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue