File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,26 @@ Install [MySqlConnector.Logging.log4net](https://www.nuget.org/packages/MySqlCon
26
26
27
27
Add the following line of code to your application startup routine:
28
28
29
- MySqlConnectorLogManager.Provider = new Log4netLoggerProvider();
29
+ ``` csharp
30
+ MySqlConnectorLogManager .Provider = new Log4netLoggerProvider ();
31
+ ```
30
32
31
33
#### Microsoft.Extensions.Logging
32
34
33
35
Install [ MySqlConnector.Logging.Microsoft.Extensions.Logging] ( https://www.nuget.org/packages/MySqlConnector.Logging.Microsoft.Extensions.Logging/ ) .
34
36
35
37
Add the following line of code to your ` Startup.Configure ` method:
36
38
37
- MySqlConnectorLogManager.Provider = new MicrosoftExtensionsLoggingLoggerProvider(loggerFactory);
39
+ ``` csharp
40
+ MySqlConnectorLogManager .Provider = new MicrosoftExtensionsLoggingLoggerProvider (loggerFactory );
41
+ ```
42
+
43
+ #### Serilog
44
+
45
+ Install [ MySqlConnector.Logging.Serilog] ( https://www.nuget.org/packages/MySqlConnector.Logging.Serilog/ ) .
46
+
47
+ Add the following line of code to your application startup routine:
48
+
49
+ ``` csharp
50
+ MySqlConnectorLogManager .Provider = new SerilogLoggerProvider (loggerFactory );
51
+ ```
You can’t perform that action at this time.
0 commit comments