public static void WriteLine(ConsoleVerbosity level) { if (level <= m_Verbosity) { Console.WriteLine(); } }
public static void NewLine(ConsoleVerbosity verbosity = ConsoleVerbosity.Medium) { if (verbosity >= Verbosity) { Console.WriteLine(); } }
public static void WriteLine(ConsoleVerbosity level, string str) { if (level <= m_Verbosity) { Console.WriteLine(str); } }
public static void WriteInfoToConsole(ConsoleVerbosity verbose, string label, string value, ConsoleColorExt valueColor, bool extended) { if (RugConsole.Verbosity >= verbose) { WriteInfoToConsole(label, value, valueColor, extended); } }
public static void Error(string msg, bool writeLine = true, ConsoleVerbosity verbosity = ConsoleVerbosity.Low) { if (Log != null && Log.Name != "Console") { Log.Error(msg); } if (Writer != null && Writer != Console.Out) { Writer.WriteLine(msg); } SafeConsoleWrite(msg, writeLine, _errorColor, verbosity); }
public static void Info(string msg, bool writeLine = true, ConsoleVerbosity verbosity = ConsoleVerbosity.Medium) { if (Log != null && Log.Name != "Console") { Log.Info(msg); } if (Writer != null && Writer != Console.Out) { Writer.WriteLine(msg); } SafeConsoleWrite(msg, writeLine, _infoColor, verbosity); }
public static void Error(string msg, bool writeLine = true, ConsoleVerbosity verbosity = ConsoleVerbosity.Low, bool addToLog = true) { //log but special check for CLI final exit to avoid duplication of hint to check log in the log if (addToLog) { SafeLog(msg, LogLevel.Error); } //output writer if specified if (Writer != null && Writer != Console.Out) { Writer.WriteLine(msg); } //console if applicable SafeConsoleWrite(msg, writeLine, _errorColor, verbosity); }
public static void WriteLine(ConsoleVerbosity level, ConsoleColorExt colour, string str) { if (level <= m_Verbosity) { if (colour != ConsoleColorExt.Inhreit) { ConsoleColor foregroundColor = Console.ForegroundColor; if (colour != ConsoleColorExt.Inhreit) { Console.ForegroundColor = (ConsoleColor)colour; } Console.WriteLine(str); Console.ForegroundColor = foregroundColor; } else { Console.WriteLine(str); } } }
public static void Write(ConsoleVerbosity level, ConsoleThemeColor colour, string str) { App.Write(level, colour, str); }
public void WriteLine(ConsoleVerbosity level, ConsoleColorExt colour, string str) { ConsoleExt.WriteLine(level, colour, str); }
public static void WriteLine(ConsoleVerbosity level, ConsoleColorExt colour, string str) { if (level <= m_Verbosity) { if (colour != ConsoleColorExt.Inhreit) { ConsoleColor foregroundColor = Console.ForegroundColor; if (colour != ConsoleColorExt.Inhreit) { Console.ForegroundColor = (ConsoleColor) colour; } Console.WriteLine(str); Console.ForegroundColor = foregroundColor; } else { Console.WriteLine(str); } } }
public static void Any(string msg, bool writeLine = true, ConsoleColor foreColor = ConsoleColor.Gray, ConsoleVerbosity verbosity = ConsoleVerbosity.Medium) { //log SafeLog(msg, LogLevel.Trace); //output writer if specified if (Writer != null && Writer != Console.Out) { Writer.WriteLine(msg); } //console if applicable SafeConsoleWrite(msg, writeLine, foreColor, verbosity); }
public void Write(ConsoleVerbosity level, string str) { ConsoleExt.Write(level, str); }
public void WriteLine(ConsoleVerbosity level) { ConsoleExt.WriteLine(level); }
public static void Write(ConsoleVerbosity level, string str) { App.Write(level, str); }
public static void WriteLine(ConsoleVerbosity level, ConsoleThemeColor colour, string str) { WriteLine(level, Theme[colour], str); }
public static void WriteLine(ConsoleVerbosity level) { App.WriteLine(level); }
public static bool ShouldWrite(ConsoleVerbosity verbosity) { return(App.ShouldWrite(verbosity)); }
public static void WriteInfoToConsole(ConsoleVerbosity verbose, string label, string value, ConsoleColorExt valueColor, bool extended) { if (RugConsole.Verbosity >= verbose) { WriteInfoToConsole(label, value, valueColor, extended); } }
public void WriteLine(ConsoleVerbosity level) { ConsoleExt.WriteLine(level); }
public void Write(ConsoleVerbosity level, ConsoleThemeColor colour, string str) { ConsoleExt.Write(level, colour, str); }
public static bool ShouldWrite(ConsoleVerbosity verbosity) { return(verbosity <= m_Verbosity); }
public static void WriteLine(ConsoleVerbosity level, ConsoleThemeColor colour, string str) { WriteLine(level, Theme[colour], str); }
public static bool ShouldWrite(ConsoleVerbosity verbosity) { return (verbosity <= m_Verbosity); }
public void Write(ConsoleVerbosity level, string str) { ConsoleExt.Write(level, str); }
public static void WriteLine(ConsoleVerbosity level) { if (level <= m_Verbosity) { Console.WriteLine(); } }
public bool ShouldWrite(ConsoleVerbosity verbosity) { return ConsoleExt.ShouldWrite(verbosity); }
public bool ShouldWrite(ConsoleVerbosity verbosity) { return(ConsoleExt.ShouldWrite(verbosity)); }
public static void Operation(string msg, bool writeLine = true, ConsoleVerbosity verbosity = ConsoleVerbosity.Low) { Any(msg, writeLine, _opColor, verbosity); }
public void Write(ConsoleVerbosity level, ConsoleThemeColor colour, string str) { ConsoleExt.Write(level, colour, str); }
public static void General(string msg, bool writeLine = true, ConsoleVerbosity verbosity = ConsoleVerbosity.Medium) { Any(msg, writeLine, _generalColor, verbosity); }
public static void Write(ConsoleVerbosity level, ConsoleThemeColor colour, string str) { App.Write(level, colour, str); }
public static void WriteLine(ConsoleVerbosity level, string str) { if (level <= m_Verbosity) { Console.WriteLine(str); } }
static void SafeConsoleWrite(string msg, bool writeLine, ConsoleColor foreground, ConsoleVerbosity verbosity) { if (verbosity >= Verbosity) { ConsoleColor lastForecolor = Console.ForegroundColor; Console.ForegroundColor = foreground; if (writeLine) { Console.WriteLine(msg); } else { Console.Write(msg); } Console.ForegroundColor = lastForecolor; } }
public static void WriteLine(ConsoleVerbosity level) { App.WriteLine(level); }
public static void System(string msg, bool writeLine = true, ConsoleVerbosity verbosity = ConsoleVerbosity.Low) { Any(msg, writeLine, _sysColor, verbosity); }
public static void WriteLine(ConsoleVerbosity level, ConsoleColorExt colour, string str) { App.WriteLine(level, colour, str); }
public static void Result(string msg, bool writeLine = true, ConsoleVerbosity verbosity = ConsoleVerbosity.Medium) { Any(msg, writeLine, _resultColor, verbosity); }
public static bool ShouldWrite(ConsoleVerbosity verbosity) { return App.ShouldWrite(verbosity); }
public static void Any(string msg, bool writeLine = true, ConsoleColor foreColor = ConsoleColor.Gray, ConsoleVerbosity verbosity = ConsoleVerbosity.Medium) { if (Writer != null && Writer != Console.Out) { Writer.WriteLine(msg); } SafeConsoleWrite(msg, writeLine, foreColor, verbosity); }
public static void Write(ConsoleVerbosity level, string str) { App.Write(level, str); }