Doug
Doug

Reputation: 7057

Azure: Application logs are switched off. You can turn them on using the 'Diagnostic logs' settings

This is hopefully a quick question.

I've got a Microsoft Azure Web Application.

If I navigate to the following location within my webapp in portal.azure.com:

Microsoft Azure > Browse > All resources > (MY APP) > Tools > Streaming logs

I get the error message:

Application logs are switched off. You can turn them on using the 'Diagnostic logs' settings.

However, it gives me no reference on where I go to do this. Checking under "Application Settings" for the application I do not see anything that matches this name, and I haven't found any of the "logging" settings to work to enable this "Streaming Logs".

Can anyone, please help point me to how I turn this on?

Upvotes: 16

Views: 12709

Answers (5)

whatever
whatever

Reputation: 3637

In the azure portal:

Your azure app > Monitoring > App Service Logs

enter image description here

Upvotes: 0

IAmCoder
IAmCoder

Reputation: 3442

Turn it on here:

Azure -> App Service -> App Service logs -> Application Logging (Filesystem) -> ON

Then for 12 hours you can view it here:

Azure -> App Service -> Log stream

enter image description here

Upvotes: 11

Faisal Mehboob
Faisal Mehboob

Reputation: 609

To enable diagnostic logging on your app in azure. Go to:

Portal.azure.com > (Your App) > Diagnostic settings > Add Diagnostic setting

To view your application and web server logs. Go to:

(Your App) > Log Stream 

Upvotes: 5

HankCa
HankCa

Reputation: 9629

Its 3 years later (July 2018) and things seem to be rearranged.

From https://learn.microsoft.com/en-us/azure/app-service/web-sites-enable-diagnostic-log.

Azure > (My App) > Settings / Monitoring (down LH Side) > Diagnostic Logs to turn on.

Upvotes: 2

Doug
Doug

Reputation: 7057

I figured it out. Within portal.azure.com:

Microsoft Azure > (My App) > Settings > Logs

There are all the settings for enabling the logs.

Upvotes: 3

Related Questions