Ejemplo n.º 1
0
 /// <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));
 }
Ejemplo n.º 2
0
 /// <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));
 }