Andover.Data.Logs.Provider.Chainsaw.Extensions.LogEntryListExtensions.GetLogEntriesWithKeyword C# (CSharp) Method

GetLogEntriesWithKeyword() public static method

public static GetLogEntriesWithKeyword ( this logEntries, string keyword ) : List
logEntries this
keyword string
return List
        public static List<LogEntry> GetLogEntriesWithKeyword(this List<LogEntry> logEntries, string keyword)
        {
            return logEntries.Where(entry => entry.Message.Contains(keyword)).DefaultIfEmpty().ToList();
        }