예제 #1
0
        public static void Log24Bit(ConsoleColor color,
                                    bool newline,
                                    TextWriter writer,
                                    string category,
                                    string message,
                                    params object[] arg)
        {
            if (!Enabled)
            {
                return;
            }
            if (!ConsoleSwatch.EnableVT())
            {
                Log4Bit(color, newline, writer, category, message, arg);
                return;
            }

            Log24Bit(color.AsDOSColor()
                     .AsXTermColor()
                     .ToForeground(),
                     null,
                     newline,
                     writer,
                     category,
                     message,
                     arg);
        }
예제 #2
0
 private static void Log24Bit(ConsoleColor color, string category, string message, params object[] arg)
 {
     if (!Enabled)
     {
         return;
     }
     if (!EnableVT())
     {
         Log4Bit(color, true, category, message, arg);
         return;
     }
     Log24Bit(color.AsDOSColor().AsXTermColor().ToForeground(), null, true, category, message, arg);
 }