2025迁移版本,多项规则修改
This commit is contained in:
13
MesETL.Test/XUnit/Logging/XUnitLoggerExtensions.cs
Normal file
13
MesETL.Test/XUnit/Logging/XUnitLoggerExtensions.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace TestProject1.XUnit.Logging;
|
||||
|
||||
internal static class XUnitLoggerExtensions
|
||||
{
|
||||
public static ILoggingBuilder AddXUnitLogger(this ILoggingBuilder builder, ITestOutputHelper output)
|
||||
{
|
||||
builder.AddProvider(new XunitLoggerProvider(output));
|
||||
return builder;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user