Azure application logs not showing

I'm relatively new to Azure, and I just looked at the tutorial on how to create a new Azure feature that starts when a new blob is created and has this as the default code.

public static void Run(Stream myBlob, string name, TraceWriter log)
{
    log.Info($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");
}

From what I see in the textbook, I should see some information in the "Logs" area under the code, but nothing is displayed, I have been checking the solution for some time, but I can, It seems, is something useful.

Any help would be greatly appreciated.

+21
source share
5 answers

The log window is a bit fragile and does not always display logs. However, the logs are also written to the log files.

Kudu: https://[your-function-app].scm.azurewebsites.net/

> CMD

LogFiles > Application > Functions > Function > [Name of your function]

.

+29

Azure , Azure. , , "". Microsoft, , , . ,

enter image description here

+5

, : Log window under function code

, , , Application Insights. , : Monitor Tab with past log entries.

+3

, "" Function Azure . , , . Function .

0

I would completely avoid waiting for the logs to appear in the function application. Go to the monitor on the left and go through it. Even when they can go through 5 minutes. Why on earth can aws be the only provider in this space that can immediately give you logs? GCP is also bad for this .. (not sure about alicloud)

0
source

Source: https://habr.com/ru/post/1679734/


All Articles