Azure diagnostics logs give us the ability to collect diagnostic data for a deployed microservice. We can also use a diagnostic extension to collect data from various sources. Azure Diagnostics is supported by web and worker roles, Azure virtual machines, and all Azure App services. Other Azure services have their own separate diagnostics.
Enabling Azure diagnostics logs and exploring various settings in the Azure app service is easy and available as a toggle switch, as shown in the following screenshot:
Azure diagnostics can collect data from the following sources:
- Performance counters
- Application logs
- Windows event logs
- .NET event sources
- IIS logs
- Manifest-based ETW
- Crash dumps
- Custom error logs
- Azure diagnostic infrastructure logs