@Tommy Paulsen To view the stdout/stderr logs generated from inside the container in which your Node.js app runs, you can use the Log stream feature in the Azure portal. Here are the steps to follow:
- In the Azure portal, navigate to your App Service.
- In the left menu, scroll down to the Monitoring section and select Log stream.
- After a few seconds, the output window shows a message indicating that you're connected to the log-streaming service. You can generate more output activity by refreshing the page in the browser.
If you prefer to use the Azure CLI, you can use the az webapp log tail
command to stream logs. Here's an example:
az webapp log tail --name --resource-group
This command streams the logs for the specified App Service app.
However, if you want to get stdout from Node without instrumenting your app to work with Application Insights, you can use console.log() statements in your code to write to stdout. These statements will be captured in the logs generated by the Log stream feature or the az webapp log tail
command.