MySqlConnector.Logging.Microsoft.Extensions.Logging 2.0.0

.NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package MySqlConnector.Logging.Microsoft.Extensions.Logging -Version 2.0.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.
dotnet add package MySqlConnector.Logging.Microsoft.Extensions.Logging --version 2.0.0
<PackageReference Include="MySqlConnector.Logging.Microsoft.Extensions.Logging" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MySqlConnector.Logging.Microsoft.Extensions.Logging --version 2.0.0
#r "nuget: MySqlConnector.Logging.Microsoft.Extensions.Logging, 2.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MySqlConnector.Logging.Microsoft.Extensions.Logging as a Cake Addin
#addin nuget:?package=MySqlConnector.Logging.Microsoft.Extensions.Logging&version=2.0.0

// Install MySqlConnector.Logging.Microsoft.Extensions.Logging as a Cake Tool
#tool nuget:?package=MySqlConnector.Logging.Microsoft.Extensions.Logging&version=2.0.0


This package integrates MySqlConnector logging with the Microsoft.Extensions.Logging framework.

How to Use

Add the following line of code to Program.cs method (before any MySqlConnector objects have been used):


Alternatively, obtain an ILoggerFactory through dependency injection and add:

MySqlConnectorLogManager.Provider = new MicrosoftExtensionsLoggingLoggerProvider(loggerFactory);
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MySqlConnector.Logging.Microsoft.Extensions.Logging:

Package Downloads

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 17,548 11/28/2021
2.0.0 3,318 11/9/2021
1.0.0 37,044 7/11/2020
0.58.0 21,527 9/24/2019
0.57.0 410 9/23/2019
0.40.0 12,986 4/17/2018
0.37.1 781 3/21/2018