| title | Include file |
|---|---|
| description | Include file |
| services | app-service |
| author | cephalin |
| ms.service | azure-app-service |
| ms.topic | include |
| ms.date | 04/01/2025 |
| ms.author | cephalin |
| ms.custom | include file |
To access the console logs generated from inside your application code in App Service, turn on diagnostic logging by running the following command in Cloud Shell:
az webapp log config --resource-group <resource-group-name> --name <app-name> --docker-container-logging filesystem --level Verbose
Possible values for --level are Error, Warning, Info, and Verbose. Each subsequent level includes the previous level. For example, Error includes only error messages. Verbose includes all messages.
After you turn on diagnostic logging, run the following command to see the log stream:
az webapp log tail --resource-group <resource-group-name> --name <app-name>
If console logs don't appear immediately, check again in 30 seconds.
To stop log streaming at any time, select Ctrl+C.