A middleware for aspnetcore to log httpcontext data with serilog.
Install-Package Serilog.Aspnetcore.Middleware
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseHttpContextLogger();
...
}
You'll have a log event per request with all HttpContext informations including request & response body
Soon...
- Fork it
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request