Exemple #1
0
        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);
        }
Exemple #2
0
 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);
 }