diff --git a/src/Aerx.Serilog.Sinks.Loki/Extensions/DependencyInjection.cs b/src/Aerx.Serilog.Sinks.Loki/Extensions/DependencyInjection.cs index 361873f..546079a 100644 --- a/src/Aerx.Serilog.Sinks.Loki/Extensions/DependencyInjection.cs +++ b/src/Aerx.Serilog.Sinks.Loki/Extensions/DependencyInjection.cs @@ -75,6 +75,7 @@ public static IServiceCollection AddDirectToLokiLogging(this IServiceCollection configureHttp(services); + services.AddLogging(b => b.ClearProviders().SetMinimumLevel(LogLevel.Trace)); services.TryAddSingleton(x => new JsonValueFormatter(Constants.TypeTagName)); services.TryAddSingleton(); services.TryAddSingleton();