Serilog Enrichers: Getting Common Information into Log Entries

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!
Course info
Rating
(15)
Level
Intermediate
Updated
Dec 5, 2018
Duration
34m
Table of contents
Description
Course info
Rating
(15)
Level
Intermediate
Updated
Dec 5, 2018
Duration
34m
Description

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
About the author

Full-stack developer, architect using the Microsoft stack and other key tools to create awesome solutions.

More from the author
Effective Logging in ASP.NET Core
Intermediate
2h 27m
Jul 26, 2019
More courses by Erik Dahl
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Erik Dahl, and welcome to my course, Serilog Enrichers: Getting Common Information into Log Entries. I'm a principal architect at RealPage. Getting good information into your ASP. NET Core applications doesn't always imply lots of new code in lots of new places. By using enrichers, you can add common and useful information to every one of the log entries in your applications without touching the main application code. In this course, we're going to explore Serilog enrichers and how you can use them to add common data like machine name and assembly information, HTTP request information, and also information about the logged-in user to both an ASP. NET Core MVC site and a Web API project. Some of the major topics that we'll cover include using standard Serilog enrichers to include basic information, using custom enrichers to get anything you want from the HTTP context into your log entries, and getting all information about exceptions into the log entries. By the end of this course, you'll know how to leverage Serilog enrichers within your ASP. NET Core applications to get useful information that matters to you and to every log entry created from your applications. Before beginning the course, you should be familiar with basic Serilog and ASP. NET Core concepts. I hope you'll join me on this journey to learn about enriching your log entries with the Serilog Enrichers: Getting Common Information into Log Entries course, here at Pluralsight. (Music)