fm.Extensions.Logging.TestContext 1.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package fm.Extensions.Logging.TestContext --version 1.2.0
                    
NuGet\Install-Package fm.Extensions.Logging.TestContext -Version 1.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="fm.Extensions.Logging.TestContext" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="fm.Extensions.Logging.TestContext" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="fm.Extensions.Logging.TestContext" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add fm.Extensions.Logging.TestContext --version 1.2.0
                    
#r "nuget: fm.Extensions.Logging.TestContext, 1.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package fm.Extensions.Logging.TestContext@1.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=fm.Extensions.Logging.TestContext&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=fm.Extensions.Logging.TestContext&version=1.2.0
                    
Install as a Cake Tool

MSTest TestContext logger provider implementation for Microsoft.Extensions.Logging. Supports loglevel configuration like Microsoft.Extensions.Logging.Console.

Commonly used Methods:
TestContextLoggerFactoryExtensions.AddTestContext

Commonly used Types:
TestContextLogger
TestContextLoggerSettings

Product Compatible and additional computed target framework versions.
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on fm.Extensions.Logging.TestContext:

Package Downloads
fm.Extensions.Testing.DependencyInjection

Provides a MSTest base class for tests based on IServiceProvider. Use common Startup.cs patterns like ConfigureServices(...), ConfigureConfiguration(...) and ConfigureLogging(...) to setup your tests.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.0 307 11/13/2025
10.0.0 215 10/8/2025
9.0.0 493 11/15/2024
8.0.2 2,620 9/16/2024
8.0.1 481 4/5/2024
8.0.0 5,441 3/27/2024
7.0.0 7,058 3/4/2023
6.3.0 11,361 8/5/2022
6.2.0 38,987 11/11/2021
6.1.0 3,216 8/11/2021
6.0.0 3,461 11/15/2020
5.2.0 2,678 1/4/2020
5.1.0 1,852 10/23/2019
5.0.0 3,380 9/4/2019
4.0.0 22,641 10/11/2017
3.0.0 1,934 10/9/2017
2.0.1 1,380 4/24/2017
2.0.0 1,760 2/27/2017
1.2.0 2,404 6/29/2016

TestContextLogger now prints logger name and event ID when logger is created for non-UnitTest classes.