Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metaljase/httploggingw3cloggingserilogexamples
Examples of logging HTTP requests and responses using W3C Logging, HTTP Logging, and Serilog's Request Logging.
https://github.com/metaljase/httploggingw3cloggingserilogexamples
api asp-net-core aspnet-core aspnetcore csharp dotnet dotnet-core dotnetcore httplogging logging minimal-api serilog w3clogging
Last synced: 5 days ago
JSON representation
Examples of logging HTTP requests and responses using W3C Logging, HTTP Logging, and Serilog's Request Logging.
- Host: GitHub
- URL: https://github.com/metaljase/httploggingw3cloggingserilogexamples
- Owner: metaljase
- Created: 2024-02-24T21:46:24.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-03-06T23:42:58.000Z (7 months ago)
- Last Synced: 2024-09-28T22:23:33.194Z (5 days ago)
- Topics: api, asp-net-core, aspnet-core, aspnetcore, csharp, dotnet, dotnet-core, dotnetcore, httplogging, logging, minimal-api, serilog, w3clogging
- Language: C#
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is HttpLoggingW3CLoggingSerilogExamples?
HttpLoggingW3CLoggingExamples contains four ASP.NET Core 8.0 minimal APIs that demonstrates examples of logging HTTP requests and responses.
The solution contains the following projects:
- `Metalhead.Examples.W3CLogging.Api` Implements [W3C Logging](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/w3c-logger/?view=aspnetcore-8.0) to write HTTP requests and responses to a rolling log file.
- `Metalhead.Examples.HttpLogging.Api` Implements [HTTP Logging](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/http-logging/?view=aspnetcore-8.0) to emit HTTP requests and responses to the Kestrel console.
- `Metalhead.Examples.HttpLoggingSerilog.Api` Implements [HTTP Logging](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/http-logging/?view=aspnetcore-8.0) to emit HTTP requests and responses to the Kestrel console, and also writes to a rolling log file using Serilog.
- `Metalhead.Examples.SerilogRequestLogging.Api` Implements Serilog's Request Logging to emit HTTP requests to the Kestrel console, and also writes to a rolling log file using Serilog.