private async Task HandleEventLogEntry(EventLogEntry entry, string logName) { // Don't send the entry to Seq if it doesn't match the filtered log levels, event IDs, or sources if (LogLevels != null && LogLevels.Count > 0 && !LogLevels.Contains(entry.EntryType)) { return; } // EventID is obsolete #pragma warning disable 618 if (EventIds != null && EventIds.Count > 0 && !EventIds.Contains(entry.EventID)) #pragma warning restore 618 { return; } if (Sources != null && Sources.Count > 0 && !Sources.Contains(entry.Source)) { return; } await SeqApi.PostRawEvents(entry.ToDto(logName)); }