azure-functions-host: Can't enable Application Logging (Blob) on an Azure Function app

I’m trying to enable application logging (level = information, storage settings = an application-logs blob container I just created) on my Azure Function app from the portal but I keep getting the following error:

Key Value
DESCRIPTION Failed to update web app logs settings for **************. There was an error processing your request. Please try again in a few moments.
STATUS Error
TIME Tuesday, February 7, 2017, 7:53:24 AM
CORRELATION IDS 40345302-5727-4f5d-9f28-7bd110a7f976

I tried first a few times without specifying storage information. When I realized I had not specified a blob container I thought it would work but it keeps failing.

It looks like this bug already happened in the past: #397

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 30 (26 by maintainers)

Most upvoted comments

Thanks, I can see my functions now. I have enabled the application logs and I can see them grow in my chosen blob container. I’m a bit confused though, I see only Sending response: 200.0 OK logs. I thought that the application logs were the one produced with the TraceWriter object provided to the functions.

If I manually run this test function, I don’t see either the info or the error log in the application logs (they are configured at the Information level):

public static void Run(string input, TraceWriter log)
{
    log.Info($"Hello from a test function with input {input}");
    log.Error("A dummy error occurred");
}

Is this expected or is there still something misconfigured somewhere?