You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

MySqlConnector.Logging.log4net

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

MySqlConnector.Logging.log4net

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

2.0.0
nugetNuGet
Version published
Maintainers
2
Created
Source

About

This package integrates MySqlConnector logging with log4net.

How to Use

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>

Keywords

mysql

FAQs

Package last updated on 09 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts