MySqlConnector.Logging.log4net 0.58.0

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

Install-Package MySqlConnector.Logging.log4net -Version 0.58.0
dotnet add package MySqlConnector.Logging.log4net --version 0.58.0
<PackageReference Include="MySqlConnector.Logging.log4net" Version="0.58.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MySqlConnector.Logging.log4net --version 0.58.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

How to Use

To integrate MySqlConnector with log4net, add the following line of code to your application startup routine (before any MySqlConnector objects have been used):

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>

How to Use

To integrate MySqlConnector with log4net, add the following line of code to your application startup routine (before any MySqlConnector objects have been used):

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/

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.58.0 415 9/24/2019
0.57.0 37 9/23/2019
0.37.1 11,449 3/21/2018