public static void LogWarning(object obj) { ConsoleColor oldColor = Console.ForegroundColor; if (oldColor == ConsoleColor.Black) { oldColor = ConsoleColor.Gray; } if (Console.CursorLeft > 1) { Console.WriteLine(); } Console.ForegroundColor = ConsoleColor.Yellow; VRCModLogger.Log("[VRCExtended] " + obj.ToString()); Console.ForegroundColor = oldColor; }
public static void Log(string text) { ConsoleColor oldColor = Console.ForegroundColor; if (oldColor == ConsoleColor.Black) { oldColor = ConsoleColor.Gray; } if (Console.CursorLeft > 1) { Console.WriteLine(); } Console.ForegroundColor = ConsoleColor.Green; VRCModLogger.Log("[VRCExtended] " + text); Console.ForegroundColor = oldColor; }