Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.02 KB

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

File metadata and controls

33 lines (24 loc) · 1.02 KB
title description services author ms.service ms.topic ms.date ms.author ms.custom
include file
include file
app-service
cephalin
azure-app-service
include
03/27/2019
cephalin
include file, linux-related-content

You can access the console logs generated from inside the container.

First, turn on container logging by running the following command:

az webapp log config --name <app-name> --resource-group <resource-group-name> --docker-container-logging filesystem

Replace <app-name> and <resource-group-name> with the names appropriate for your web app.

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

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

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

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

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