MySqlConnector.Logging.log4net 1.0.0

Writes MySqlConnector logging output to log4net with one line of code.

Install-Package MySqlConnector.Logging.log4net -Version 1.0.0
dotnet add package MySqlConnector.Logging.log4net --version 1.0.0
<PackageReference Include="MySqlConnector.Logging.log4net" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MySqlConnector.Logging.log4net --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MySqlConnector.Logging.log4net, 1.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.log4net as a Cake Addin
#addin nuget:?package=MySqlConnector.Logging.log4net&version=1.0.0

// Install MySqlConnector.Logging.log4net as a Cake Tool
#tool nuget:?package=MySqlConnector.Logging.log4net&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Add the following line of code to your application startup routine:

MySqlConnectorLogManager.Provider = new Log4netLoggerProvider();

To reduce the verbosity of MySqlConnector logging, add the following element to your log4net config:

<log4net>
  ...
  <logger name="MySqlConnector">
    <level value="WARN" /> 
  </logger>

Add the following line of code to your application startup routine:

MySqlConnectorLogManager.Provider = new Log4netLoggerProvider();

To reduce the verbosity of MySqlConnector logging, add the following element to your log4net config:

<log4net>
  ...
  <logger name="MySqlConnector">
    <level value="WARN" /> 
  </logger>

Release Notes

https://mysqlconnector.net/overview/version-history/

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 3,207 7/11/2020
0.58.0 7,097 9/24/2019
0.57.0 247 9/23/2019
0.37.1 13,255 3/21/2018