Exemplo n.º 1
0
 private static void Log24Bit(XTermColor color, string category, string message, params object[] arg)
 {
     if (!Enabled)
     {
         return;
     }
     if (!EnableVT())
     {
         Log4Bit(ConsoleColor.Gray, true, category, message, arg);
         return;
     }
     Log24Bit(color.ToForeground(), null, true, category, message, arg);
 }
Exemplo n.º 2
0
        public static void Log(XTermColor color, bool newline, TextWriter writer, string?category, string?level, string message)
        {
            if (!Enabled)
            {
                return;
            }

            if (!EnableVT())
            {
                Log4Bit(ConsoleColor.Gray, newline, writer, category, level, message);
                return;
            }

            Log(color.ToForeground(), default, newline, writer, category, level, message);
Exemplo n.º 3
0
        public static void Log24Bit(XTermColor color, bool newline, TextWriter writer, string category, string message, params object[] arg)
        {
            if (!Enabled)
            {
                return;
            }
            if (!EnableVT())
            {
                Log4Bit(ConsoleColor.Gray, newline, writer, category, message, arg);
                return;
            }

            Log24Bit(color.ToForeground(), null, newline, writer, category, message, arg);
        }