6 implementations of IStaticLogEnricher
Microsoft.Extensions.Telemetry (2)
Enrichment\ApplicationLogEnricher.cs (1)
12internal sealed class ApplicationLogEnricher : IStaticLogEnricher
Enrichment\StaticProcessLogEnricher.cs (1)
14internal sealed class StaticProcessLogEnricher : IStaticLogEnricher
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Enrichment\EnricherExtensionsTests.cs (2)
71internal class EmptyEnricher : ILogEnricher, IStaticLogEnricher 79internal class TestEnricher : ILogEnricher, IStaticLogEnricher
Microsoft.Extensions.Telemetry.Tests (2)
Logging\ExtendedLoggerTests.cs (1)
893private sealed class ForcedEnricher : ILogEnricher, IStaticLogEnricher
Logging\SerialExtendedLoggerTests.cs (1)
81private sealed class AngryEnricher : ILogEnricher, IStaticLogEnricher
18 references to IStaticLogEnricher
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLoggerFactory.cs (2)
36IEnumerable<IStaticLogEnricher> staticEnrichers, 87foreach (var enricher in staticEnrichers)
Microsoft.Extensions.Telemetry.Abstractions (3)
Enrichment\EnrichmentServiceCollectionExtensions.cs (3)
45where T : class, IStaticLogEnricher 46=> Throw.IfNull(services).AddSingleton<IStaticLogEnricher, T>(); 55public static IServiceCollection AddStaticLogEnricher(this IServiceCollection services, IStaticLogEnricher enricher)
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Enrichment\EnricherExtensionsTests.cs (2)
60var enrichersCollection = provider.GetServices<IStaticLogEnricher>(); 63foreach (var enricher in enrichersCollection)
Microsoft.Extensions.Telemetry.Tests (11)
Enrichment\ApplicationEnricherExtensionsTests.cs (4)
42Assert.NotNull(host.Services.GetRequiredService<IStaticLogEnricher>()); 61Assert.NotNull(host.Services.GetRequiredService<IStaticLogEnricher>()); 85var enricher = host.Services.GetRequiredService<IStaticLogEnricher>();
Logging\ExtendedLoggerTests.cs (6)
142staticEnrichers: Array.Empty<IStaticLogEnricher>(), 268staticEnrichers: Array.Empty<IStaticLogEnricher>(), 310staticEnrichers: Array.Empty<IStaticLogEnricher>(), 340staticEnrichers: Array.Empty<IStaticLogEnricher>(), 373staticEnrichers: Array.Empty<IStaticLogEnricher>(), 407staticEnrichers: Array.Empty<IStaticLogEnricher>(),
Logging\SerialExtendedLoggerTests.cs (1)
46staticEnrichers: Array.Empty<IStaticLogEnricher>(),