I want to understand the issue of logging on asp.net cortex 2.1. My goal is to register all critical errors due to which the kestrel server may break. As I understood from the documentation
Microsoft.Extensions.Logging
and Serilog, you need to create a logger in each controller, and set the recording conditions (for example try/catch). Is there a more convenient way to log ANY critical errors in a project from one place? I'll be greateful for any help.