public static void UseTraceLogEntriesEnrichment(this ExceptionlessConfiguration config, int maxEntriesToInclude = TraceLogEnrichment.DefaultMaxEntriesToInclude) { if (!Trace.Listeners.OfType<ExceptionlessTraceListener>().Any()) Trace.Listeners.Add(new ExceptionlessTraceListener()); config.Settings.Add(TraceLogEnrichment.MaxEntriesToIncludeKey, maxEntriesToInclude.ToString()); config.AddEnrichment<TraceLogEnrichment>(); }
/// <summary> /// Reads the Exceptionless configuration from the app.config or web.config file. /// </summary> /// <param name="config">The configuration object you want to apply the attribute settings to.</param> public static void UseErrorEnrichment(this ExceptionlessConfiguration config) { config.RemoveEnrichment<SimpleErrorEnrichment>(); config.AddEnrichment<Enrichments.ErrorEnrichment>(); }
/// <summary> /// Automatically set a reference id for error events. /// </summary> public static void UseReferenceIds(this ExceptionlessConfiguration config) { config.AddEnrichment<ReferenceIdEnrichment>(); }