private static ConsoleColor SetColor(LogType type) { ConsoleColor oldColor = Console.ForegroundColor; if (Options.UseColor) { Console.ForegroundColor = type.GetColorForType(); } return(oldColor); }