/// <summary> /// Returns true if OrgApacheSlingCommonsMetricsInternalLogReporterProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingCommonsMetricsInternalLogReporterProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingCommonsMetricsInternalLogReporterProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Period == other.Period || Period != null && Period.Equals(other.Period) ) && ( TimeUnit == other.TimeUnit || TimeUnit != null && TimeUnit.Equals(other.TimeUnit) ) && ( Level == other.Level || Level != null && Level.Equals(other.Level) ) && ( LoggerName == other.LoggerName || LoggerName != null && LoggerName.Equals(other.LoggerName) ) && ( Prefix == other.Prefix || Prefix != null && Prefix.Equals(other.Prefix) ) && ( Pattern == other.Pattern || Pattern != null && Pattern.Equals(other.Pattern) ) && ( RegistryName == other.RegistryName || RegistryName != null && RegistryName.Equals(other.RegistryName) )); }
private void LogsFilter(object sender, FilterEventArgs e) { LogMessageViewModel vm = (LogMessageViewModel)e.Item; e.Accepted = LoggerName.Equals(vm.Log.Logger, StringComparison.OrdinalIgnoreCase); }