- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Using Serilog.AspNetCore in ASP.NET Core 3.0
In this post I describe how you can use Serilog.AspNetCore to reduce the number of logs generated by every request in ASP.NET Core 3.0…

New in ASP.NET Core 3.0: structured logging for startup messages
Exploring ASP.NET Core 3.0 - Part 6
In this post I describe a change in ASP.NET Core 3.0 that means startup messages use structured logging…

Adding Serilog to the ASP.NET Core Generic Host
In this post I introduce the Serilog.Extensions.Hosting package, discuss why it's necessary, and describe how to use it to add Serilog to a generic host app…

Writing logs to Elasticsearch with Fluentd using Serilog in ASP.NET Core
In this post, I describe how to customise the output of the Serilog Console sink so that you can pipe your console output to Elasticsearch using Fluentd.…

Suppressing the startup and shutdown messages in ASP.NET Core
In this post I show how to disable the startup messages shown in the console when you run an ASP.NET Core application using WebHostBuilder or HostBuilder.…

Using anonymous types and tuples to attach correlation IDs to scope state with Serilog and Seq in ASP.NET Core
In this post I describe two extension methods that make logging scopes as key-value pairs nicer in ASP.NET Core, by using anonymous types and tuples.…

