From b5515d0bb0df93738723899f9571a6760e699b58 Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Wed, 15 Nov 2023 12:17:20 +1000 Subject: [PATCH] Update to .NET 8 RTM and Serilog 3.1.1 --- global.json | 2 +- samples/Sample/Program.cs | 2 +- samples/Sample/Sample.csproj | 4 +-- .../Serilog.AspNetCore.csproj | 26 ++++++++++--------- .../Serilog.AspNetCore.Tests.csproj | 10 +++---- 5 files changed, 23 insertions(+), 21 deletions(-) diff --git a/global.json b/global.json index 2c23bfe..d079f83 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { "allowPrerelease": false, - "version": "7.0.100", + "version": "8.0.100", "rollForward": "latestFeature" } } diff --git a/samples/Sample/Program.cs b/samples/Sample/Program.cs index d03a62d..22155c4 100644 --- a/samples/Sample/Program.cs +++ b/samples/Sample/Program.cs @@ -42,6 +42,6 @@ public static IHostBuilder CreateHostBuilder(string[] args) => .Enrich.FromLogContext() .WriteTo.Console(new ExpressionTemplate( // Include trace and span ids when present. - "[{@t:HH:mm:ss} {@l:u3}{#if @tr is not null} ({@tr}:{@sp}){#end}] {@m}\n{@x}"))) + "[{@t:HH:mm:ss} {@l:u3}{#if @tr is not null} ({substring(@tr,0,4)}:{substring(@sp,0,4)}){#end}] {@m}\n{@x}"))) .ConfigureWebHostDefaults(webBuilder => webBuilder.UseStartup()); } diff --git a/samples/Sample/Sample.csproj b/samples/Sample/Sample.csproj index d8af183..c43ac1a 100644 --- a/samples/Sample/Sample.csproj +++ b/samples/Sample/Sample.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 @@ -9,7 +9,7 @@ - + diff --git a/src/Serilog.AspNetCore/Serilog.AspNetCore.csproj b/src/Serilog.AspNetCore/Serilog.AspNetCore.csproj index 4435023..e963846 100644 --- a/src/Serilog.AspNetCore/Serilog.AspNetCore.csproj +++ b/src/Serilog.AspNetCore/Serilog.AspNetCore.csproj @@ -3,9 +3,9 @@ Serilog support for ASP.NET Core logging - 7.0.1 + 8.0.0 Microsoft;Serilog Contributors - net462;netstandard2.0;netstandard2.1;net6.0;net7.0 + net462;netstandard2.0;net6.0;net7.0;net8.0 true serilog;aspnet;aspnetcore icon.png @@ -15,37 +15,39 @@ git false Serilog + README.md + - - + + - + - - - - + + + + - + - + - + diff --git a/test/Serilog.AspNetCore.Tests/Serilog.AspNetCore.Tests.csproj b/test/Serilog.AspNetCore.Tests/Serilog.AspNetCore.Tests.csproj index 686a8d0..446fc77 100644 --- a/test/Serilog.AspNetCore.Tests/Serilog.AspNetCore.Tests.csproj +++ b/test/Serilog.AspNetCore.Tests/Serilog.AspNetCore.Tests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 @@ -9,10 +9,10 @@ - - - - + + + +