I'm quite new to Web-development and Azure. When I'm doing development for Blazor and if there is any error in my components/pages, the Visual studio shows that in the Output window. I am trying to capture such error messages when my App is published on Azure App Service.
What I read from web I can setup logger and write message to log by explicitly calling functions like LogInformation etc. This would be good to write in Catch blocks. However I want logs for error just like VS without specifying any Try-Catch blocks. Basically I want the errors to get logged somewhere on the Azure without me explicitly catching the errors.
Can you please guide me on what I need to use.