From cc7290d00e35cacb05c600bf20d06910b51a49c4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 3 Jul 2025 17:58:09 +0000 Subject: [PATCH 1/3] Initial plan From a8bc90b94e098bf47a05582539e5ea628f5ae128 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 3 Jul 2025 18:02:00 +0000 Subject: [PATCH 2/3] Initial setup: fix .NET version compatibility issues Co-authored-by: mo-esmp <1659032+mo-esmp@users.noreply.github.com> --- .../Serilog.Enrichers.ClientInfo.csproj | 2 +- .../Serilog.Enrichers.ClientInfo.Tests.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Serilog.Enrichers.ClientInfo/Serilog.Enrichers.ClientInfo.csproj b/src/Serilog.Enrichers.ClientInfo/Serilog.Enrichers.ClientInfo.csproj index a06cc56..1dbbf2a 100644 --- a/src/Serilog.Enrichers.ClientInfo/Serilog.Enrichers.ClientInfo.csproj +++ b/src/Serilog.Enrichers.ClientInfo/Serilog.Enrichers.ClientInfo.csproj @@ -1,6 +1,6 @@ - net8.0;net9.0 + net8.0 Serilog.Enrichers.ClientInfo Serilog latest diff --git a/test/Serilog.Enrichers.ClientInfo.Tests/Serilog.Enrichers.ClientInfo.Tests.csproj b/test/Serilog.Enrichers.ClientInfo.Tests/Serilog.Enrichers.ClientInfo.Tests.csproj index dc3f541..c29571b 100644 --- a/test/Serilog.Enrichers.ClientInfo.Tests/Serilog.Enrichers.ClientInfo.Tests.csproj +++ b/test/Serilog.Enrichers.ClientInfo.Tests/Serilog.Enrichers.ClientInfo.Tests.csproj @@ -1,12 +1,12 @@  - net9.0 + net8.0 false - + From 65f20bd7781f3a850db3af28c79671787dfcd12a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 3 Jul 2025 18:07:01 +0000 Subject: [PATCH 3/3] Fix Blazor WASM compatibility by replacing FrameworkReference with PackageReferences Co-authored-by: mo-esmp <1659032+mo-esmp@users.noreply.github.com> --- sample/SampleWebApp/log20250703.txt | 8 ++++++++ .../Serilog.Enrichers.ClientInfo.csproj | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sample/SampleWebApp/log20250703.txt diff --git a/sample/SampleWebApp/log20250703.txt b/sample/SampleWebApp/log20250703.txt new file mode 100644 index 0000000..33930eb --- /dev/null +++ b/sample/SampleWebApp/log20250703.txt @@ -0,0 +1,8 @@ +[18:05:31] INF Clint IP: CorrelationId: Client Agent: Now listening on: http://localhost:5000 +[18:05:31] INF Clint IP: CorrelationId: Client Agent: Application started. Press Ctrl+C to shut down. +[18:05:31] INF Clint IP: CorrelationId: Client Agent: Hosting environment: Production +[18:05:31] INF Clint IP: CorrelationId: Client Agent: Content root path: /home/runner/work/serilog-enrichers-clientinfo/serilog-enrichers-clientinfo/sample/SampleWebApp +[18:05:40] INF Clint IP:127.0.0.1 CorrelationId:f6895ea2-bb8a-4780-8afe-a1ea8310b55e Client Agent:curl/8.5.0 Request starting HTTP/1.1 GET http://localhost:5000/weatherforecast - null null +[18:05:40] INF Clint IP:127.0.0.1 CorrelationId:f6895ea2-bb8a-4780-8afe-a1ea8310b55e Client Agent:curl/8.5.0 Executing endpoint 'HTTP: GET /weatherforecast' +[18:05:40] INF Clint IP:127.0.0.1 CorrelationId:f6895ea2-bb8a-4780-8afe-a1ea8310b55e Client Agent:curl/8.5.0 Executed endpoint 'HTTP: GET /weatherforecast' +[18:05:40] INF Clint IP:127.0.0.1 CorrelationId:f6895ea2-bb8a-4780-8afe-a1ea8310b55e Client Agent:curl/8.5.0 Request finished HTTP/1.1 GET http://localhost:5000/weatherforecast - 200 null application/json; charset=utf-8 108.4583ms diff --git a/src/Serilog.Enrichers.ClientInfo/Serilog.Enrichers.ClientInfo.csproj b/src/Serilog.Enrichers.ClientInfo/Serilog.Enrichers.ClientInfo.csproj index 1dbbf2a..61243b4 100644 --- a/src/Serilog.Enrichers.ClientInfo/Serilog.Enrichers.ClientInfo.csproj +++ b/src/Serilog.Enrichers.ClientInfo/Serilog.Enrichers.ClientInfo.csproj @@ -12,7 +12,8 @@ - + +