Skip to content

Commit

Permalink
Update logging provider call in ServiceCollectionExtensions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
frankhaugen committed Jan 3, 2024
1 parent 93e4e64 commit 067d3c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Frank.Testing.Logging/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static class ServiceCollectionExtensions
/// <returns>The modified IServiceCollection with the test logging added.</returns>
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;
}
}

0 comments on commit 067d3c9

Please sign in to comment.