DEV Community

Bervianto Leo Pratama
Bervianto Leo Pratama

Posted on • Originally published at Medium on

6

Activate Logging for Azure Web App for Containers

Why my logs not shown?

I will assume you are already have deployed the applications at Azure Web App, but it show nothing at Log Stream. Here is the Log stream looks.

Log stream

Log stream menu under Monitoring section.

When you have warning about the App Service logs not activated, you come to the right place. You need to go App Service logs menu under Monitoring section .

App Service logs

Click the Application Logging menu to File System. Define the Quota (MB) and Retention Period (Days) with your needs, as my example fill about 35 MB and 5 Days, I fill low number because this is only for testing/development for the Production maybe you will need higher quota and longer retention period. After finished, you can try again into Log stream and also do any tasks that will trigger the logs.

Another Options to Get Logs

Anyway, this step only to find the logs same as Log stream , but not about to activate it.

Linux

Visit this: https://.scm.azurewebsites.net/

You will get pages like this

Kudu — Azure App Service

You can try check the logs by click Current Docker logs or if you need download the logs, click Download as zip.

More Information

If you need more information about to get logs, it will good if you try to check the Azure Documentation. Here the link: https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs

This is part of learning this module: https://docs.microsoft.com/en-us/learn/paths/az-400-develop-instrumentation-strategy/

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️