ASP.NET Core Health Checks
1h 45mIntermediate2024-10-10
Authors

Christian Wenz
Web Pioneer, Technology Specialist, Entrepreneur
Course details
Logging and health checks in ASP.NET Core are vital for enterprise and commercial development. You need to understand what's happening on your site in order to find where problems have occurred, spot security issues, and discover optimization opportunities. In this course, instructor Christian Wenz shows you how to use the logging infrastructure that ASP.NET Core provides and then introduces you to the features that ASP.NET Core offers for health checks, including how to create, register, and customize them. Christian gives you a quick tour of the sample app that you will use in this course. Then he gets into the logging portion of the course, covering topics such as how to configure logging, log to files, log to Azure, use log scopes, and more. After a challenge to see how well you understand logging, Christian discusses ASP.NET Core health checks, including how to configure and add health checks, create a UI to work with health checks, and secure your health check endpoints.
Learning objectives
Explain the importance of logging and health checks in ASP.NET Core applications for enterprise and commercial development.
Implement logging configurations in ASP.NET Core, including logging to files, Azure, and using log scopes.
Configure and integrate health checks in ASP.NET Core applications, including creating a user interface and securing health check endpoints.
Analyze and troubleshoot issues, security concerns, and optimization opportunities in ASP.NET Core applications using logging and health check data.
Learning objectives
Explain the importance of logging and health checks in ASP.NET Core applications for enterprise and commercial development.
Implement logging configurations in ASP.NET Core, including logging to files, Azure, and using log scopes.
Configure and integrate health checks in ASP.NET Core applications, including creating a user interface and securing health check endpoints.
Analyze and troubleshoot issues, security concerns, and optimization opportunities in ASP.NET Core applications using logging and health check data.
Skills covered
ASP.NET CoreBack-End Web DevelopmentFull-Stack Web DevelopmentFront-End Web DevelopmentWeb DevelopmentMicrosoftOne-Off
Concepts
0. Introduction
- 01 - You should care about logging and health checks
- 02 - What you should know
- 03 - Prerequisites
- 04 - Touring the sample app
1. ASP.NET Core Logging
- 05 - Understanding ILogger
- 06 - What's in the template
- 07 - Adding log entries
- 08 - Understanding log levels
- 09 - Configuring logging
- 10 - Logging to files
- 11 - Logging to Azure
- 12 - Using log scopes
- 13 - Challenge - Add logging to the sample app
- 14 - Solution - Add logging to the sample app
- 15 - Summary of ASP.NET logging
2. ASP.NET Core Health Checks
- 16 - Health checks explained
- 17 - Configuring health checks
- 18 - Adding health checks
- 19 - Using the IHealthCheck interface
- 20 - Adding database health checks
- 21 - Creating a UI
- 22 - Securing health check endpoints
- 23 - Challenge - Add a health check to the sample app
- 24 - Solution - Add a health check to the sample app
- 25 - Summary of health checks