Skip to content

Commit 499950a

Browse files
authored
Merge pull request #537 from serilog-mssql/dev
Release 6.6.1
2 parents 8feab2d + 1b569e2 commit 499950a

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 6.6.1
2+
* Fixed issue #515: Cannot use .AuditTo with SpanId or TraceId (thanks to @Kolthor and @vui611)
3+
* Fixed issue #530: Document default value of AllowNull
4+
* Fixed issue #528: Wrong period in README.md sample
5+
16
# 6.6.0
27
* Fixed issue #509: Add SqlInsertStatementWriter which uses INSERT statements instead of SqlBulkCopy (thanks to @BrettJaner)
38

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ Numeric types use the default precision and scale. For numeric types, you are re
383383

384384
### AllowNull
385385

386-
Determines whether or not the column can store SQL `NULL` values. Some of the other features like `PrimaryKey` have related restrictions, and some of the Standard Columns impose restrictions (for example, the `Id` column never allows nulls).
386+
Determines whether or not the column can store SQL `NULL` values. The default is true. Some of the other features like `PrimaryKey` have related restrictions, and some of the Standard Columns impose restrictions (for example, the `Id` column never allows nulls).
387387

388388
### DataLength
389389

@@ -602,7 +602,7 @@ Keys and values are not case-sensitive. This is an example of configuring the si
602602
"schemaName": "EventLogging",
603603
"autoCreateSqlTable": true,
604604
"batchPostingLimit": 1000,
605-
"period": "0.00:00:30"
605+
"batchPeriod": "0.00:00:30"
606606
},
607607
"restrictedToMinimumLevel": "Warning",
608608
"columnOptionsSection": { . . . }

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

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

33
<PropertyGroup>
44
<Description>A Serilog sink that writes events to Microsoft SQL Server and Azure SQL</Description>
5-
<VersionPrefix>6.6.0</VersionPrefix>
5+
<VersionPrefix>6.6.1</VersionPrefix>
66
<Authors>Michiel van Oudheusden;Christian Kadluba;Serilog Contributors</Authors>
77
<TargetFrameworks>netstandard2.0;net462;net472;net6.0</TargetFrameworks>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public KeyValuePair<string, object> GetStandardColumnNameAndValue(StandardColumn
5151
case StandardColumn.Level:
5252
return new KeyValuePair<string, object>(_columnOptions.Level.ColumnName, _columnOptions.Level.StoreAsEnum ? (object)logEvent.Level : logEvent.Level.ToString());
5353
case StandardColumn.TraceId:
54-
return new KeyValuePair<string, object>(_columnOptions.TraceId.ColumnName, logEvent.TraceId);
54+
return new KeyValuePair<string, object>(_columnOptions.TraceId.ColumnName, logEvent.TraceId.ToString());
5555
case StandardColumn.SpanId:
56-
return new KeyValuePair<string, object>(_columnOptions.SpanId.ColumnName, logEvent.SpanId);
56+
return new KeyValuePair<string, object>(_columnOptions.SpanId.ColumnName, logEvent.SpanId.ToString());
5757
case StandardColumn.TimeStamp:
5858
return GetTimeStampStandardColumnNameAndValue(logEvent);
5959
case StandardColumn.Exception:

test/Serilog.Sinks.MSSqlServer.Tests/Sinks/MSSqlServer/Output/StandardColumnDataGeneratorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public void GetStandardColumnNameAndValueForTraceIdReturnsLogLevelKeyValue()
279279

280280
// Assert
281281
Assert.Equal("TraceId", result.Key);
282-
Assert.Equal(traceId, result.Value);
282+
Assert.Equal("34898a9020e0390190b0982370034f00", result.Value);
283283
}
284284

285285
[Fact]
@@ -298,7 +298,7 @@ public void GetStandardColumnNameAndValueForSpanIdReturnsLogLevelKeyValue()
298298

299299
// Assert
300300
Assert.Equal("SpanId", result.Key);
301-
Assert.Equal(spanId, result.Value);
301+
Assert.Equal("0390190b09823700", result.Value);
302302
}
303303

304304
[Fact]

0 commit comments

Comments
 (0)