This chapter began with Common Logging, which is a must-have in .NET Core. The infrastructure, although limited, does not support structured logging out of the box—for example, it is built-in, pluggable, and DI-friendly. Use it for the most Common Logging uses. Please explore all the logging providers available to see whether there is one that meets your requirements. Special hosting providers, such as Azure or AWS, offer their own packages, which you should leverage for the best results.
Next, we saw that diagnostic tracing offers the advantage that you can call methods with discrete parameters, which is an advantage as it can lead to more meaningful logs. You can use it to see exactly what middleware is being executed and how much time each step takes.
The other options shown, adding middleware or action filters, are also probably worth exploring, especially action filters.
Then, we saw that telemetry is essential for enterprise applications...