We'd like to monitor the Application Event Logs (the Event Viewer - Application Log in a traditional Windows machine) in Azure App Service. The reason is if our app throws an unhandled exception and crashes during the host start up, IIS log the error message in the Application Event Logs, and we want to monitor this error and get an alert when it happens. Our ASP.NET host handles internal background jobs and there's no public endpoint.
I checked Send Logs to Azure Monitor, but it doesn't do Windows Event Log. Is there other way to monitor the ASP.NET host crash?
One workaround is that App Service has "Total App Domains" metrics. If the host crashes, the app domain count will be 0. But I'm wondering there should be a way to monitor "ASP.NET host crash"?