27 lines
639 B
C#
27 lines
639 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// See License.txt in the project root for license information
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Microsoft.AspNetCore.Testing
|
|
{
|
|
class XunitLoggerProvider : ILoggerProvider
|
|
{
|
|
private readonly ITestOutputHelper _output;
|
|
|
|
public XunitLoggerProvider(ITestOutputHelper output)
|
|
{
|
|
_output = output;
|
|
}
|
|
public ILogger CreateLogger(string categoryName)
|
|
{
|
|
return new XunitLogger(_output, categoryName);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
}
|
|
}
|