Meziantou.Extensions.Logging.Xunit.v3
2.0.2
Prefix Reserved
See the version list below for details.
dotnet add package Meziantou.Extensions.Logging.Xunit.v3 --version 2.0.2
NuGet\Install-Package Meziantou.Extensions.Logging.Xunit.v3 -Version 2.0.2
<PackageReference Include="Meziantou.Extensions.Logging.Xunit.v3" Version="2.0.2" />
<PackageVersion Include="Meziantou.Extensions.Logging.Xunit.v3" Version="2.0.2" />
<PackageReference Include="Meziantou.Extensions.Logging.Xunit.v3" />
paket add Meziantou.Extensions.Logging.Xunit.v3 --version 2.0.2
#r "nuget: Meziantou.Extensions.Logging.Xunit.v3, 2.0.2"
#:package Meziantou.Extensions.Logging.Xunit.v3@2.0.2
#addin nuget:?package=Meziantou.Extensions.Logging.Xunit.v3&version=2.0.2
#tool nuget:?package=Meziantou.Extensions.Logging.Xunit.v3&version=2.0.2
Meziantou.Extensions.Logging.Xunit.v3
Statically create XUnitLogger or XUnitLogger<T>
ILogger logger = XUnitLogger.CreateLogger();
ILogger<MyType> logger = XUnitLogger.CreateLogger<MyType>();
Statically create XUnitLogger or XUnitLogger<T> by passing an existing ITestOutputHelper
ILogger logger = XUnitLogger.CreateLogger(testOutputHelper);
ILogger<MyType> logger = XUnitLogger.CreateLogger<MyType>(testOutputHelper);
Using WebApplicationFactory
If you are using a WebApplicationFactory:
public class UnitTest1(ITestOutputHelper testOutputHelper)
{
[Fact]
public async Task Test1()
{
using var factory = new WebApplicationFactory<Program>()
.WithWebHostBuilder(builder =>
{
builder.ConfigureLogging(builder =>
{
// You can override the logging configuration if needed
//builder.SetMinimumLevel(LogLevel.Trace);
//builder.AddFilter(_ => true);
// Register the xUnit logger provider
builder.Services.AddSingleton<ILoggerProvider>(new XUnitLoggerProvider(testOutputHelper, appendScope: false));
});
});
}
}
Blog post about this package: How to write logs from ILogger to xUnit.net ITestOutputHelper
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- xunit.v3.extensibility.core (>= 3.2.2)
-
net11.0
- xunit.v3.extensibility.core (>= 3.2.2)
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- xunit.v3.extensibility.core (>= 3.2.2)
-
net9.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- xunit.v3.extensibility.core (>= 3.2.2)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Meziantou.Extensions.Logging.Xunit.v3:
| Package | Downloads |
|---|---|
|
TwoRivers.Testing
Framework and tools for implementing applications by following best practices in a developer friendly way. Built from commit 59db18f48398b711c50e16d5da7aacc2e0e6f014 https://github.com/TwoRiversIT/AppFramework/commit/59db18f48398b711c50e16d5da7aacc2e0e6f014 |
|
|
Vulthil.xUnit
Reusable xUnit base infrastructure for integration and unit test composition. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Meziantou.Extensions.Logging.Xunit.v3:
| Repository | Stars |
|---|---|
|
kerryjiang/SuperSocket
SuperSocket is a high-performance, extensible socket server application framework for .NET. It provides a robust architecture for building custom network communication applications with support for multiple protocols including TCP, UDP, and WebSocket.
|
|
|
wiremock/WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on WireMock Java, but extended and different functionality. Full documentation can be found at https://wiremock.org/dotnet/.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.3 | 90 | 6/28/2026 |
| 2.0.2 | 16,732 | 6/13/2026 |
| 2.0.1 | 19,213 | 5/14/2026 |
| 2.0.0 | 4,372 | 5/6/2026 |
| 1.1.27 | 11,153 | 4/25/2026 |
| 1.1.26 | 38,923 | 3/29/2026 |
| 1.1.25 | 23,255 | 3/15/2026 |
| 1.1.24 | 19,952 | 2/22/2026 |
| 1.1.23 | 29,899 | 1/25/2026 |
| 1.1.22 | 3,102 | 1/18/2026 |
| 1.1.21 | 6,986 | 12/28/2025 |
| 1.1.20 | 7,026 | 12/14/2025 |
| 1.1.19 | 4,037 | 11/30/2025 |
| 1.1.18 | 13,164 | 11/16/2025 |
| 1.1.17 | 6,941 | 11/9/2025 |
| 1.1.16 | 11,864 | 10/19/2025 |
| 1.1.15 | 5,896 | 10/5/2025 |
| 1.1.14 | 14,734 | 9/16/2025 |
| 1.1.13 | 4,106 | 9/3/2025 |
| 1.1.12 | 25,492 | 8/17/2025 |