public static void Log24Bit(DOSColor color, bool newline, TextWriter writer, string category, string message, params object[] arg) { if (!Enabled) { return; } if (!ConsoleSwatch.EnableVT()) { Log4Bit(color.AsConsoleColor(), newline, writer, category, message, arg); return; } Log24Bit(color.AsXTermColor() .ToForeground(), null, newline, writer, category, message, arg); }
private static void Log24Bit(DOSColor color, string category, string message, params object[] arg) { if (!Enabled) { return; } if (!EnableVT()) { Log4Bit(color.AsConsoleColor(), true, category, message, arg); return; } Log24Bit(color.AsXTermColor().ToForeground(), null, true, category, message, arg); }