Skip to content

Commit dce8580

Browse files
authored
Merge pull request #621 from ckadluba/add-net8-and-remove-sourcelink
Removed obsolete SourceLink, minor fixes & updated changelog
2 parents 759128e + 6375211 commit dce8580

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 8.2.1
2+
* Updated SqlClient to 5.2.3 (thanks to @cancakar35)
3+
* Fixes in .editorconfig (thanks to @cancakar35)
4+
* Convert AppConfigDemo to SDK style (thanks to @cancakar35)
5+
* Removed obsolete SourceLink package references
6+
* Small code style fixes
7+
18
# 8.2.0
29
* Added `ConnectionConfiguration` sink option to customize SqlConnection before use (thanks to @nhart12)
310

Directory.Packages.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
1212
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
1313
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
14-
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
1514
<PackageVersion Include="coverlet.collector" Version="3.2.0" />
1615
<PackageVersion Include="FluentAssertions" Version="6.12.1" />
1716
<PackageVersion Include="Dapper.StrongName" Version="2.1.35" />

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A Serilog sink that writes events to Microsoft SQL Server. This sink will write the log event data to a table and can optionally also store the properties inside an XML or JSON column so they can be queried. Important properties can also be written to their own separate columns.
44

55
**Package** - [Serilog.Sinks.MSSqlServer](http://nuget.org/packages/serilog.sinks.mssqlserver)
6-
| **Minimum Platforms** - .NET Framework 4.6.2, .NET 6.0, .NET Standard 2.0
6+
| **Minimum Platforms** - .NET Framework 4.6.2, .NET 8.0, .NET Standard 2.0
77

88
#### Topics
99

src/Serilog.Sinks.MSSqlServer/Serilog.Sinks.MSSqlServer.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
</PropertyGroup>
3434

3535
<ItemGroup>
36-
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
3736
<PackageReference Include="Microsoft.Data.SqlClient" />
3837
<PackageReference Include="Microsoft.Extensions.Configuration" />
3938
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" />

src/Serilog.Sinks.MSSqlServer/Sinks/MSSqlServer/Output/XmlPropertyFormatter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Serilog.Sinks.MSSqlServer.Output
99
{
1010
internal class XmlPropertyFormatter : IXmlPropertyFormatter
1111
{
12-
private static readonly Regex _invalidXMLChars = new Regex(
12+
private static readonly Regex _invalidXmlChars = new Regex(
1313
@"(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F\uFEFF\uFFFE\uFFFF]",
1414
RegexOptions.Compiled);
1515

@@ -61,7 +61,7 @@ private static string SimplifyScalar(object value)
6161
{
6262
if (value == null) return null;
6363

64-
return new XText(_invalidXMLChars.Replace(value.ToString(), m => "\\u" + ((ushort)m.Value[0]).ToString("x4", CultureInfo.InvariantCulture))).ToString();
64+
return new XText(_invalidXmlChars.Replace(value.ToString(), m => "\\u" + ((ushort)m.Value[0]).ToString("x4", CultureInfo.InvariantCulture))).ToString();
6565
}
6666

6767
private string SimplifyDictionary(ColumnOptions.PropertiesColumnOptions options, DictionaryValue dict)

src/Serilog.Sinks.MSSqlServer/Sinks/MSSqlServer/Platform/SqlCreateTableWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public string GetSql()
4848
{
4949
var common = (SqlColumn)column.ExtendedProperties["SqlColumn"];
5050

51-
sql.Append(GetColumnDDL(common));
51+
sql.Append(GetColumnDdl(common));
5252
if (dataTable.Columns.Count > i++) sql.Append(',');
5353
sql.AppendLine();
5454

@@ -84,7 +84,7 @@ public string GetSql()
8484
// Examples of possible output:
8585
// [Id] BIGINT IDENTITY(1,1) NOT NULL
8686
// [Message] VARCHAR(1024) NULL
87-
private static string GetColumnDDL(SqlColumn column)
87+
private static string GetColumnDdl(SqlColumn column)
8888
{
8989
var sb = new StringBuilder();
9090

0 commit comments

Comments
 (0)