private static Color ConvertColor(DebugConsoleLevel level) { switch (level) { case DebugConsoleLevel.Critical: return(Colors.Red); case DebugConsoleLevel.Error: return(Colors.Red); case DebugConsoleLevel.Warning: return(Colors.Yellow); case DebugConsoleLevel.Info: return(Colors.Green); case DebugConsoleLevel.Trace: return(Colors.Silver); default: return(Colors.White); } }
private static Color ConvertColor(DebugConsoleLevel level) { switch (level) { case DebugConsoleLevel.Critical: return Colors.Red; case DebugConsoleLevel.Error: return Colors.Red; case DebugConsoleLevel.Warning: return Colors.Yellow; case DebugConsoleLevel.Info: return Colors.Green; case DebugConsoleLevel.Trace: return Colors.Silver; default: return Colors.White; } }
//+++++++++ INTERFACE FUNCTIONS ++++++++++++++++++++++++++++++++ public static void Log(string message, DebugConsoleLevel level) { DebugConsole.instance.AddMessage(message, level); }