Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.