6: Stream logs from Azure App Service into Visual Studio Code
Use this procedure to stream logs from an Azure App Service to Visual Studio Code.
In Visual Studio Code, open the Azure: App Service explorer, right-click the App Service, and select Start streaming logs:

If prompted to enable file logging and restart the web app, select Yes. While the app restarts, the Output window in VS Code shows progress. When the app is restarted, select the Start streaming logs command again. Enable logging is a one-time process.
The Output window in VS Code displays "Starting Live Log Stream" and log output begins to appear. Try refreshing the web app in the browser to generate more log information.
To stop streaming logs (without disabling logging), right-click the app in the Azure: App Service explorer and select Stop streaming logs.