Summary
The good thing about hiding the basic configuration 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 or a more flexible logger, such as NLog
or log4net
.
You will learn more about how to configure ASP.NET Core in the next chapter.