From 04038d0429998eb79e1d20c653fdc900a185c24d Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Tue, 20 Aug 2019 13:40:26 +1000 Subject: [PATCH 1/2] Dev version bump [skip ci] --- .../Serilog.Extensions.Logging.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serilog.Extensions.Logging/Serilog.Extensions.Logging.csproj b/src/Serilog.Extensions.Logging/Serilog.Extensions.Logging.csproj index 479cb20..9a3e564 100644 --- a/src/Serilog.Extensions.Logging/Serilog.Extensions.Logging.csproj +++ b/src/Serilog.Extensions.Logging/Serilog.Extensions.Logging.csproj @@ -2,7 +2,7 @@ Low-level Serilog provider for Microsoft.Extensions.Logging - 3.0.0 + 3.0.1 Microsoft;Serilog Contributors netstandard2.0 true From fb572f87294df496d3415948096dd78a2f3ddc07 Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Wed, 21 Aug 2019 10:31:12 +0100 Subject: [PATCH 2/2] #149 - Fixed index out of range issue with negative ids --- .../Extensions/Logging/SerilogLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serilog.Extensions.Logging/Extensions/Logging/SerilogLogger.cs b/src/Serilog.Extensions.Logging/Extensions/Logging/SerilogLogger.cs index 89b9f93..007e73d 100644 --- a/src/Serilog.Extensions.Logging/Extensions/Logging/SerilogLogger.cs +++ b/src/Serilog.Extensions.Logging/Extensions/Logging/SerilogLogger.cs @@ -139,7 +139,7 @@ internal static LogEventProperty CreateEventIdProperty(EventId eventId) if (eventId.Id != 0) { - if (eventId.Id < LowEventIdValues.Length) + if (eventId.Id >= 0 && eventId.Id < LowEventIdValues.Length) // Avoid some allocations properties.Add(LowEventIdValues[eventId.Id]); else