7. Stream logs into Visual Studio Code

In this step, you learn how to view or "tail" any output that the running website generates through calls to console.log. This output appears in the Output window in Visual Studio Code.

Stream logs from VS Code

  1. In the Azure App Service explorer, right-click the app node and choose Start Streaming Logs.

    View Streaming Logs

  2. When prompted, choose to enable logging and restart the application.

    Prompt to enable logging and restart

  3. Once the app is restarted, the Output panel in Visual Studio Code opens with a connection to the log stream, starting with the message Starting Live Log Stream.

Next steps