/// <summary> /// Send a MonitorEntry to the queue to be processed /// </summary> public static void LogToMonitor(MonitorEntry entry) { entry.Message = entry.Message.Trim(); entry.Method = entry.Method.Trim(); // don't add to queue if not needed switch (entry.Type) { case MonitorType.Warning: case MonitorType.Error: case MonitorType.Information: MonitorQueue.AddEntry(entry); break; case MonitorType.Data: if (GetJEntries || Settings.StartMonitor) { MonitorQueue.AddEntry(entry); } break; default: throw new ArgumentOutOfRangeException(); } }
/// <summary> /// Send a PulseEntry to the queue to be processed /// </summary> public static void LogToMonitor(PulseEntry entry) { MonitorQueue.AddPulse(entry); }
/// <summary> /// reset the count from the UI /// </summary> public static void ResetIndex() { MonitorQueue.ResetMonitorIndex(); // _index = 0; }