Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions sample/SampleWebApp/log20250703.txt
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<AssemblyName>Serilog.Enrichers.ClientInfo</AssemblyName>
<RootNamespace>Serilog</RootNamespace>
<LangVersion>latest</LangVersion>
Expand All @@ -12,7 +12,8 @@
</PropertyGroup>

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.7" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="nsubstitute" Version="5.1.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
Expand Down