Improving logging performance with source generators: Exploring .NET Core 6 - Part 8

added by DotNetKicks
11/2/2021 10:39:25 AM

347 Views

In this post I look at the new LoggerMessage source generator, showing how and when to use it. I start by showing the existing ways to use ILogger, pitfalls to watch out for, and approaches to improve performance. I then show how the source generator simplifies this.


0 comments