public void Watch(SpiderStatus status) { string msg = $"[{status.Timestamp}] [{status.Machine}][{status.UserId}][{status.TaskGroup}] [{status.Identity}] STATUS: Left {status.Left}, Success {status.Success}, Error: {status.Error}, Total {status.Total}, Thread {status.ThreadNum}"; Writer.WriteLine(msg); }
public void Watch(SpiderStatus status) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine($"Status: Left {status.Left}, Success {status.Success}, Error: {status.Error}, Total {status.Total}, Thread {status.ThreadNum}"); Console.ResetColor(); }