예제 #1
0
        public static void LogEvent(string task, LogEntryResponse message)
        {
            var color = message.Channel switch {
                LogChannel.StdErr => ConsoleColor.Red,
                LogChannel.StdOut => ConsoleColor.Cyan,
                _ => ConsoleColor.Gray,
            };
            var time = message.Timestamp.ToLocalTime();
            var text = message.Text;

            WriteTimestamp(task, time);
            Write(color, text);
            NewLine();
        }
예제 #2
0
 private static void Print(TaskResponse task, LogEntryResponse entry)
 {
     Presentation.LogEvent(task.Name, entry);
 }