/// <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);
        }
Example #2
0
        public ILogConfiguration Custom(IEnricher enricher)
        {
            _enrichers.Add(enricher);

            return(this);
        }
Example #3
0
 public TraceSource(System.Diagnostics.TraceSource traceSource, IEnricher enricher)
 {
     this.traceSource    = traceSource;
     fallbackTraceSource = new System.Diagnostics.TraceSource(fallbackKey);
     this.enricher       = enricher;
 }
Example #4
0
 public TraceSource(string name, IEnricher enricher)
     : this(new System.Diagnostics.TraceSource(name), enricher)
 {
 }
Example #5
0
 public SanitisedTraceSource(System.Diagnostics.TraceSource traceSource, IEnricher enricher, ISanitiser sanitiser)
     : base(traceSource, enricher)
 {
     this.sanitiser = sanitiser;
 }
Example #6
0
 public SanitisedTraceSource(string name, IEnricher enricher, ISanitiser sanitiser)
     : base(name, enricher)
 {
     this.sanitiser = sanitiser;
 }
Example #7
0
        public ILogConfiguration Enrich(IEnricher enricher)
        {
            _enrichers.Add(enricher);

             return this;
        }
Example #8
0
 public LogProcessor(ILogProcessor processor, IEnricher enricher)
 {
     _processor = processor;
     _enricher  = enricher;
 }