From 05cdf31c3c149adea848d9295c2c18dc21e0a078 Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Wed, 13 May 2026 14:56:42 +1000 Subject: [PATCH 1/5] Fix package logo in README --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e269228..69973e4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A Serilog sink that writes events to the [Seq](https://datalust.co/seq) structured log server. Supports all modern .NET platforms. -[Package Logo](https://nuget.org/packages/serilog.sinks.seq) +[Package Logo](https://nuget.org/packages/serilog.sinks.seq) > [!TIP] > If you would like to see timing and dependency information in Seq, [SerilogTracing](https://github.com/serilog-tracing/serilog-tracing) is a Serilog extension that can send both logs and traces through this sink. @@ -12,8 +12,8 @@ A Serilog sink that writes events to the [Seq](https://datalust.co/seq) structur Install _Serilog.Sinks.Seq_ into your .NET project: -```powershell -> dotnet add package Serilog.Sinks.Seq +```sh +dotnet add package Serilog.Sinks.Seq ``` Point the logger to Seq: @@ -37,7 +37,7 @@ Then query log event properties like `ContactId` from the browser: When the application shuts down, [ensure any buffered events are propertly flushed to Seq](https://merbla.com/2016/07/06/serilog-log-closeandflush/) by disposing the logger or calling `Log.CloseAndFlush()`: ```csharp -Log.CloseAndFlush(); +await Log.CloseAndFlushAsync(); ``` The sink can take advantage of Seq's [API keys](https://docs.datalust.co/docs/api-keys) to authenticate clients and dynamically attach properties to events at the server-side. To use an API key, specify it in the `apiKey` parameter of `WriteTo.Seq()`. @@ -72,7 +72,7 @@ Serilog's XML configuration has several other capabilities that are described on To use the Seq sink with _Microsoft.Extensions.Configuration_, for example with ASP.NET Core or .NET Core, use the [Serilog.Settings.Configuration](https://github.com/serilog/serilog-settings-configuration) package. First install that package if you have not already done so: -```powershell +```sh dotnet add package Serilog.Settings.Configuration ``` @@ -83,7 +83,7 @@ var configuration = new ConfigurationBuilder() .AddJsonFile("appsettings.json") .Build(); -var logger = new LoggerConfiguration() +await using var logger = new LoggerConfiguration() .ReadFrom.Configuration(configuration) .CreateLogger(); ``` From ba2337bcb9ab0e02113ba936718560b51d8e9342 Mon Sep 17 00:00:00 2001 From: Liam McLennan Date: Thu, 14 May 2026 12:22:57 +1000 Subject: [PATCH 2/5] Upgrade .NET and dependencies --- src/Serilog.Sinks.Seq/Serilog.Sinks.Seq.csproj | 12 ++++++++---- .../Serilog.Sinks.Seq.Tests.csproj | 18 +++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Serilog.Sinks.Seq/Serilog.Sinks.Seq.csproj b/src/Serilog.Sinks.Seq/Serilog.Sinks.Seq.csproj index 1b77310..6328095 100644 --- a/src/Serilog.Sinks.Seq/Serilog.Sinks.Seq.csproj +++ b/src/Serilog.Sinks.Seq/Serilog.Sinks.Seq.csproj @@ -4,7 +4,7 @@ A Serilog sink that writes events to Seq using newline-delimited JSON and HTTP/HTTPS. Serilog Contributors;Serilog.Sinks.Seq Contributors;Datalust Pty Ltd Copyright © Serilog Contributors, Serilog.Sinks.Seq Contributors, Datalust Pty Ltd. - netstandard2.0;net6.0 + netstandard2.0;net6.0;net10.0 Serilog serilog;seq icon.png @@ -14,19 +14,23 @@ git README.md - + $(DefineConstants);WRITE_ALL_BYTES_ASYNC;ASYNC_DISPOSE;SOCKETS_HTTP_HANDLER_ALWAYS_DEFAULT;ARCHITECTURE_WASM + + + $(DefineConstants);WRITE_ALL_BYTES_ASYNC;ASYNC_DISPOSE;SOCKETS_HTTP_HANDLER_ALWAYS_DEFAULT;ARCHITECTURE_WASM + - + - + diff --git a/test/Serilog.Sinks.Seq.Tests/Serilog.Sinks.Seq.Tests.csproj b/test/Serilog.Sinks.Seq.Tests/Serilog.Sinks.Seq.Tests.csproj index 0eaefd6..b4f4308 100644 --- a/test/Serilog.Sinks.Seq.Tests/Serilog.Sinks.Seq.Tests.csproj +++ b/test/Serilog.Sinks.Seq.Tests/Serilog.Sinks.Seq.Tests.csproj @@ -1,14 +1,10 @@  - net4.8;net8.0;net9.0 + net4.8;net8.0;net9.0;net10.0 Serilog.Sinks.Seq.Tests true false - - - $(DefineConstants);ASYNC_DISPOSE - @@ -24,19 +20,19 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + + - From 54c23e68e5fa2184ea1c4b512d2e2f1379182d85 Mon Sep 17 00:00:00 2001 From: Liam McLennan Date: Thu, 14 May 2026 12:32:30 +1000 Subject: [PATCH 3/5] Bump package version --- Directory.Version.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Version.props b/Directory.Version.props index 7e15d99..fa3ef2b 100644 --- a/Directory.Version.props +++ b/Directory.Version.props @@ -1,5 +1,5 @@ - 9.0.0 + 9.0.1 From 7ec9255bc15876db08b49686a0ec83dc45b69cb7 Mon Sep 17 00:00:00 2001 From: Liam McLennan Date: Thu, 14 May 2026 12:35:41 +1000 Subject: [PATCH 4/5] Update sdk version --- global.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global.json b/global.json index db8627a..2b3567e 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "9.0.100", + "version": "10.0.0", "allowPrerelease": false, "rollForward": "latestFeature" } From 209db953429e6da16f7bcf65b9dbd01a04023004 Mon Sep 17 00:00:00 2001 From: Liam McLennan Date: Thu, 14 May 2026 13:08:22 +1000 Subject: [PATCH 5/5] change version to 9.1.0 --- Directory.Version.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Version.props b/Directory.Version.props index fa3ef2b..4a4cfc3 100644 --- a/Directory.Version.props +++ b/Directory.Version.props @@ -1,5 +1,5 @@ - 9.0.1 + 9.1.0