/// <summary> /// Uses the rules to determine which logs to filter. /// </summary> /// <param name="log">The log that is going to be logged.</param> /// <returns>True indicates the log should be logged and not filtered.</returns> public bool IncludeLog(ILog log) { return(LogMappingsRules.Any(l => l.Type == log.Type)); }
/// <summary> /// Uses the rules to determine which logs to filter. /// </summary> /// <param name="Log">The log that is going to be logged.</param> /// <returns>True indicates the log should be logged and not filtered.</returns> public bool IncludeLog(LogBase Log) { return(LogMappingsRules.ContainsKey(Log.Type)); }