5. Stream logs from App Service
In this step, you view the logs from the running App Service. Any calls to console.log in the site code are displayed in the terminal.
Watch remote Azure logs from local terminal
Run the following command to start logging, replacing
<your_app_name>with the name of your App Service:az webapp log tail --name <your_app_name>After a few seconds, a message should appear in the output to indicate that you're connected to the log-streaming service.
Refresh the page a few times in the browser to generate additional output.
Press Ctrl+C to end the logging session.