In this step, you learn how to view (or "tail") the logs from the running website. Any calls to
console.log in the site are displayed in the Output panel in Visual Studio Code.
Find the app in the AZURE APP SERVICE explorer, right-click the app, and choose View Streaming Logs.
When prompted, choose to enable logging and restart the application. Once the app is restarted, the VS Code Output panel opens with a connection to the log stream.
After a few seconds, you will see a message indicating that you are connected to the log-streaming service.
Connecting to log-streaming service... 2017-12-21 17:33:51.428 INFO - Container practical-mustache_2 for site practical-mustache initialized successfully. 2017-12-21 17:33:56.500 INFO - Container logs
Refresh the page a few times in the browser to see log output.
2017-12-21 17:35:17.774 INFO - Container logs 2017-12-21T17:35:14.955412230Z GET / 304 141.798 ms - - 2017-12-21T17:35:15.248930479Z GET /stylesheets/style.css 304 3.180 ms - - 2017-12-21T17:35:15.378623115Z GET /favicon.ico 404 53.839 ms - 995
Congratulations, you've successfully completed this walkthrough!
Other Azure extensions
Next, check out the other Azure extensions.
Or get them all by installing the Node Pack for Azure extension pack.