Skip to content

Commit d1616ce

Browse files
committed
Add package READMEs. Fixes #1053
1 parent 8c0506b commit d1616ce

File tree

14 files changed

+92
-6
lines changed

14 files changed

+92
-6
lines changed

docs/UsingLog4netLogging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

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

5-
```
5+
```csharp
66
MySqlConnectorLogManager.Provider = new Log4netLoggerProvider();
77
```
88

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

11-
```
11+
```xml
1212
<log4net>
1313
...
1414
<logger name="MySqlConnector">

docs/UsingMicrosoftExtensionsLogging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
To integrate MySqlConnector with Microsoft.Extensions.Logging, add the following line of code to your `Startup.Configure` method (before any `MySqlConnector` objects have been used):
44

5-
```
5+
```csharp
66
MySqlConnectorLogManager.Provider = new MicrosoftExtensionsLoggingLoggerProvider(loggerFactory);
77
```

docs/UsingNLogLogging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
To integrate MySqlConnector with [NLog](http://nlog-project.org/), add the following line of code to your application startup routine (before any `MySqlConnector` objects have been used):
44

5-
```
5+
```csharp
66
MySqlConnectorLogManager.Provider = new NLogLoggerProvider();
77
```

docs/UsingSerilogLogging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
To integrate MySqlConnector with [Serilog](https://serilog.net/), add the following line of code to your application startup routine (before any `MySqlConnector` objects have been used):
44

5-
```
5+
```csharp
66
MySqlConnectorLogManager.Provider = new SerilogLoggerProvider();
77
```

src/MySqlConnector.Authentication.Ed25519/MySqlConnector.Authentication.Ed25519.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@
44
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
55
<Title>MySqlConnector Ed25519 Authentication Plugin</Title>
66
<Description>Implements the client_ed25519 authentication plugin for MariaDB.</Description>
7-
<Copyright>Copyright 2019 Bradley Grainger</Copyright>
7+
<Copyright>Copyright 2019–2021 Bradley Grainger</Copyright>
88
<Authors>Bradley Grainger</Authors>
9+
<PackageReadmeFile>README.md</PackageReadmeFile>
910
<PackageTags>mariadb;mysqlconnector;authentication;ed25519</PackageTags>
1011
</PropertyGroup>
1112

1213
<ItemGroup>
1314
<ProjectReference Include="..\MySqlConnector\MySqlConnector.csproj" />
1415
</ItemGroup>
1516

17+
<ItemGroup>
18+
<None Include="docs\README.md" Pack="true" PackagePath="\"/>
19+
</ItemGroup>
20+
1621
</Project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## About
2+
3+
This package implements the `client_ed25519` [authentication plugin for MariaDB](https://mariadb.com/kb/en/authentication-plugin-ed25519/).
4+
5+
## How to Use
6+
7+
Call `Ed25519AuthenticationPlugin.Install()` from your application startup code to enable it.

src/MySqlConnector.Logging.Microsoft.Extensions.Logging/MySqlConnector.Logging.Microsoft.Extensions.Logging.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<Description>Writes MySqlConnector logging output to Microsoft.Extensions.Logging with one line of code.</Description>
77
<Copyright>Copyright 2017–2021 Bradley Grainger</Copyright>
88
<Authors>Bradley Grainger</Authors>
9+
<PackageReadmeFile>README.md</PackageReadmeFile>
910
<PackageTags>mysql;mysqlconnector;async;ado.net;database;netcore;logging</PackageTags>
1011
<Nullable>enable</Nullable>
1112
</PropertyGroup>
@@ -18,4 +19,8 @@
1819
<ProjectReference Include="..\MySqlConnector\MySqlConnector.csproj" />
1920
</ItemGroup>
2021

22+
<ItemGroup>
23+
<None Include="docs\README.md" Pack="true" PackagePath="\"/>
24+
</ItemGroup>
25+
2126
</Project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## About
2+
3+
This package integrates MySqlConnector logging with the Microsoft.Extensions.Logging framework.
4+
5+
## How to Use
6+
7+
Add the following line of code to your `Startup.Configure` method (before any `MySqlConnector` objects have been used):
8+
9+
```csharp
10+
MySqlConnectorLogManager.Provider = new MicrosoftExtensionsLoggingLoggerProvider(loggerFactory);
11+
```

src/MySqlConnector.Logging.NLog/MySqlConnector.Logging.NLog.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<Description>Writes lightly-structured MySqlConnector logging output to NLog.</Description>
77
<Copyright>Copyright 2018–2021 Bradley Grainger</Copyright>
88
<Authors>Rolf Kristensen</Authors>
9+
<PackageReadmeFile>README.md</PackageReadmeFile>
910
<PackageTags>mysql;mysqlconnector;async;ado.net;database;netcore;NLog;logging</PackageTags>
1011
<Nullable>enable</Nullable>
1112
</PropertyGroup>
@@ -18,4 +19,8 @@
1819
<ProjectReference Include="..\MySqlConnector\MySqlConnector.csproj" />
1920
</ItemGroup>
2021

22+
<ItemGroup>
23+
<None Include="docs\README.md" Pack="true" PackagePath="\"/>
24+
</ItemGroup>
25+
2126
</Project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## About
2+
3+
This package integrates MySqlConnector logging with [NLog](https://www.nuget.org/packages/NLog/).
4+
5+
## How to Use
6+
7+
Add the following line of code to your application startup routine (before any `MySqlConnector` objects have been used):
8+
9+
```csharp
10+
MySqlConnectorLogManager.Provider = new NLogLoggerProvider();
11+
```

0 commit comments

Comments
 (0)