Chapter 8: Options and Logging Patterns

In this chapter, we will cover .NET-specific patterns, such as the Options pattern, and logging. We will explore these abstractions while keeping it to a level where we use them, not master every aspect of them. Once you've read this chapter, you should know how to leverage the .NET 5 options and settings infrastructure, as well as how to write application logs. We will also briefly explore how to customize those systems.

The following topics will be covered in this chapter:

  • An overview of the Options pattern
  • Getting familiar with .NET logging abstractions

Let's get started!

An overview of the Options pattern

In ASP.NET 5, we can use predefined mechanisms to enhance the usage of application settings. ...

Get An Atypical ASP.NET Core 5 Design Patterns Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.