SearchPredicate = ( lEntry, searchText ) =>
lEntry.Message.Contains( searchText, StringComparison.OrdinalIgnoreCase ) ||
lEntry.Sender.Contains( searchText, StringComparison.OrdinalIgnoreCase ) ||
lEntry.Level.Contains( searchText, StringComparison.OrdinalIgnoreCase );
new[] { lEntry.Message, lEntry.Sender, lEntry.Level }
.Any(x => x.Contains(searchText, StringComparsion.OrdinalIgnoreCase)
public static bool IsSubstringOfAny(this string search, params string[] samples) =>
samples.Any(x=>x.Contains(search, StringComparsion.OrdinalIgnoreCase));