11 Logging and health checks

 

This chapter covers

  • Logging within web applications and using monitoring
  • Learning how ASP.NET Core health checks work
  • Adding a UI to display the application state, based on the health checks
  • Introducing the ASP.NET Core logging system
  • Identifying which target systems can be used for log entries

So far, this book has attempted to make sure that an application is secure and that all attacks are futile. In theory, our websites are now in good shape. But, as the famous saying goes, “in theory there is no difference between theory and practice, while in practice there is” (incorrectly attributed to various sources, but Benjamin Brewster coined that first in 1882: https://quoteinvestigator.com/2018/04/14/theory/). Something will always go wrong eventually, and the application needs to be prepared for that. Note that this is the first chapter in the book that does not start with a specific attack or case study. Instead, the topics covered here are an important ingredient of a holistic security strategy, without specific attacks assigned to them. This trend will continue throughout the remainder of the book.

11.1 Health checks

 
 

11.1.1 Health check setup

 
 
 

11.1.2 Advanced heath checks

 

11.1.3 Formatting the output

 
 
 
 

11.1.4 Health checks UI

 

11.2 Logging

 
 

11.2.1 Creating log entries

 
 
 

11.2.2 Log levels

 
 
 

11.2.3 Log scopes

 

Summary

 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest