Effective Logging in ASP.NET Core 3
In this course you will learn how to create great log entries and then get them written to places that will make them easy to use. You will learn all of the techniques you will need to make your apps easily supportable via great logging.
What you'll learn
Effective logging in your ASP.NET Core applications can make supporting and understanding those applications a snap. In this course, Effective Logging in ASP.NET Core, you will learn foundational knowledge to create great log entries as well as how to write them to places that make reviewing and analyzing them simple and fast. First, you will learn the mechanics of create log entries using the methods in Microsoft.Extensions.Logging. Next, you will discover how to assess the information in those entries and ensure that you get the key pieces that you need into them. Finally, you will explore how to get those entries written to destinations that make analysis and review easy and even fun. When you’re finished with this course, you will have the skills and knowledge of effective logging needed to light up your own applications with great insights.
Table of contents
- Introduction and Module Overview 1m
- Log Levels Defined 2m
- Methods, Categories, and EventIds 3m
- Demo: Review of Application Updates and Logging Needs 2m
- Demo: Add Log Entries with Different Levels, Categories, and EventIds 6m
- Demo: Review Resulting Log Entries 2m
- Filtering Explained 4m
- Demo: Applying Filters 2m
- Demo: Scopes 2m
- Demo: Using LoggerMessage in High Performance Situations 5m
- Summary 1m
- Introduction and Module Overview 1m
- Exception Handling Discussion 2m
- Demo: Global Exception Handling with UI Projects 4m
- Demo: Logging Exception Details and Updating the Error Page 4m
- Demo: Custom Middleware for Global API Exception Handling 6m
- Demo: Reading an API Error Response from the UI 1m
- Filters Discussed 2m
- Demo: Implementing a Razor Page Filter for Performance Logging 6m
- Demo: Implementing an Action Filter for API Performance Logging 3m
- Attributes and Base Classes Discussed 2m
- Demo: Creating an Attribute for Controllers and Actions 2m
- Demo: Overriding Filter Methods in Razor Pages 2m
- Demo: Creating a Base Class for Razor Pages 2m
- Summary 1m