Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.19 KB

app-service-web-logs-access-no-h.md

File metadata and controls

32 lines (24 loc) · 1.19 KB
title description services author ms.service ms.topic ms.date ms.author ms.custom
include file
include file
app-service
cephalin
app-service
include
03/27/2019
cephalin
include file

To access the console logs generated from inside your application code in App Service, turn on diagnostics logging by running the following command in the Cloud Shell:

az webapp log config --resource-group <resource-group-name> --name <app-name> --application-logging true --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, and Verbose includes all messages.

Once diagnostic logging is turned on, run the following command to see the log stream:

az webapp log tail --resource-group <resource-group-name> --name <app-name>

If you don't see console logs immediately, check again in 30 seconds.

Note

You can also inspect the log files from the browser at https://<app-name>.scm.azurewebsites.net/api/logs/docker.

To stop log streaming at any time, type Ctrl+C.