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(); }
private static void Print(TaskResponse task, LogEntryResponse entry) { Presentation.LogEvent(task.Name, entry); }