Centralized logging
Logging is an essential part of post-deployment and maintenance operations. Once our application has been deployed, we need to be able to track and trace errors and bottlenecks in our application. This is easy enough to accomplish when we have one application and one logging source. We can always go to one space and retrieve the logs of what has happened.
.NET has native support for simple to advanced logging options. We can leverage the native logging operations and support powerful integrations for several logging destinations, such as the following:
- Console: Shows the log outputs in a native console window. Usually used during development.
- Windows Event Log: Also knowns as Event Viewer, this is a convenient way to view logs of several applications on a Windows-based machine.
- Azure Log Stream: Azure has a central logging service that supports logging for the application.
- Azure Application Insights: A power log aggregation service provided...