Summary
The good thing about hiding the basic configuration of an application is that it allows you to clean up the newly scaffolded projects and to keep the actual start as simple as possible. The developer is able to focus on the actual features. However, the more the application grows, the more important logging becomes. The default logging configuration is easy and it works like a charm, but in production, you need a persisted log to see errors from the past. Therefore, you need to add a custom logging configuration or a more flexible third-party logger, such as NLog
or log4net
.
You will learn more about how to configure ASP.NET Core 6.0 in the next chapter.