From 067d3c902bab97017a7093af5c1638a24e514187 Mon Sep 17 00:00:00 2001 From: "Frank R. Haugen" Date: Thu, 4 Jan 2024 00:34:18 +0100 Subject: [PATCH] Update logging provider call in ServiceCollectionExtensions The call to AddPulseFlowTestLoggingProvider() in ServiceCollectionExtensions.cs has been updated to pass in the outputHelper and logLevel parameters. This change enhances customization and allows for dynamic configuration of the logging level in testing scenarios. --- Frank.Testing.Logging/ServiceCollectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frank.Testing.Logging/ServiceCollectionExtensions.cs b/Frank.Testing.Logging/ServiceCollectionExtensions.cs index 9af9b51..6d39ba4 100644 --- a/Frank.Testing.Logging/ServiceCollectionExtensions.cs +++ b/Frank.Testing.Logging/ServiceCollectionExtensions.cs @@ -16,7 +16,7 @@ public static class ServiceCollectionExtensions /// The modified IServiceCollection with the test logging added. public static IServiceCollection AddTestLogging(this IServiceCollection services, ITestOutputHelper outputHelper, LogLevel logLevel = LogLevel.Debug) { - services.AddLogging(builder => builder.AddPulseFlowTestLoggingProvider()); + services.AddLogging(builder => builder.AddPulseFlowTestLoggingProvider(outputHelper, logLevel)); return services; } } \ No newline at end of file