.NET Essentials - Logging in .NET (Part 1)

Betatalks #95

Steven and Gerben talk about logging in .NET in this two-part episode. During this first part, they demonstrate how to use Microsoft's Logging Extensions in a demo ASP.NET Core project with minimal API's in C# 8. They talk about logging fundamentals using structured messages and the LoggerMessage attribute, using log properties to customize logging, and ignoring properties for security reasons. They explain Tag Providers as a way to separate logging functionality from business entities. Steven emphasizes that separating concerns like logging from domain models is an important practice.

Links for more information:

Back to the overview of all Betatalks