/// <summary> /// Gets whether or not the enricher has already been procesed. /// </summary> /// <returns></returns> public bool GetHasBeenProcessed(IEnricher enricher, string addressId) { // ReSharper disable once ConvertIfStatementToReturnStatement if (Logs != null) { return(Logs.Any(m => string.Equals(m.TargetAddressId, addressId, StringComparison.OrdinalIgnoreCase) && string.Equals(m.SourceAddressId, addressId, StringComparison.OrdinalIgnoreCase))); } return(false); }
public ILogConfiguration Custom(IEnricher enricher) { _enrichers.Add(enricher); return(this); }
public TraceSource(System.Diagnostics.TraceSource traceSource, IEnricher enricher) { this.traceSource = traceSource; fallbackTraceSource = new System.Diagnostics.TraceSource(fallbackKey); this.enricher = enricher; }
public TraceSource(string name, IEnricher enricher) : this(new System.Diagnostics.TraceSource(name), enricher) { }
public SanitisedTraceSource(System.Diagnostics.TraceSource traceSource, IEnricher enricher, ISanitiser sanitiser) : base(traceSource, enricher) { this.sanitiser = sanitiser; }
public SanitisedTraceSource(string name, IEnricher enricher, ISanitiser sanitiser) : base(name, enricher) { this.sanitiser = sanitiser; }
public ILogConfiguration Enrich(IEnricher enricher) { _enrichers.Add(enricher); return this; }
public LogProcessor(ILogProcessor processor, IEnricher enricher) { _processor = processor; _enricher = enricher; }