Simple play icon Course
Skills

Serilog 2 Enrichers: Getting Common Information into Log Entries

by Erik Dahl

Supercharge your log entries for your ASP.NET Core applications using Serilog Enrichers. We'll cover standard enrichers and custom enrichers for HttpContext information. All without cluttering application code!

What you'll learn

Serilog is a powerful logging framework for .NET applications, but many log entries still miss critically important pieces of information needed to fully analyze or troubleshoot problems. In this course, Serilog Enrichers: Getting Common Information into Log Entries, you will learn foundational knowledge of leveraging Serilog enrichers for ASP.Net Core web projects. First, you will learn standard enrichers for things like the machine name and assembly information. Next, you will discover custom enrichment that includes information from the HttpContext to support information regarding the query string and logged-in users - both in API and MVC websites. Finally we'll look at custom enrichment and exception details. When you’re finished with this course, you will have the skills and knowledge of Serilog enrichers needed to supercharge your own ASP.NET Core applications with awesomely consistent log entries.

About the author

Erik Dahl has been developing software and architecture for 20+ years, mostly doing in-house development for his employers. His recent work has included a multi-tenant B2B implementation and self-registration B2C implementation for Duende IdentityServer, upgrading legacy ASP.NET websites from server-side technologies to a client/server mix and adopting TypeScript, building Web APIs as the back end for mobile and web applications, and finding ways to modernize existing applications and make them ... more

Ready to upskill? Get started