Exemplo n.º 1
0
        public override void WriteLine(LogPriority logPriority, string[] msg)
        {
            string line = string.Join(" ", msg);

            switch (logPriority)
            {
            case LogPriority.Error:
                sb.AppendLine(AnsiConsole.WriteLine2(AnsiColor.Red, line));
                break;

            case LogPriority.Warn:
                sb.AppendLine(AnsiConsole.WriteLine2(AnsiColor.Yellow, line));
                break;

            default:
                System.Console.WriteLine(line);
                break;
            }
        }