Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View logging output from Azure function

I've been trying to make an Azure function.

How can I tell if it's running?

I'm using an ILogger to output log messages, so I expect to see them.

I was kind of also expecting a log of invocations and results.

Do such things exist?

like image 306
Richard Barraclough Avatar asked Jul 27 '20 14:07

Richard Barraclough


1 Answers

Except the monitor of the azure function, you can also use logs in kudu to view the output of your azure function app.

And compared with the monitor of the azure function, kudu log files is more timely.

Just go to this url: https://yourfunctionappname.scm.azurewebsites.net/DebugConsole

And then go to D:\home\LogFiles\Application\Functions\Function\yourtriggername>, then you will find the log files. Monitor usually takes a certain time to display (usually 5 minutes), but the log file in kudu is real-time.

It is not recommended to use the ilogger module that comes with the azure function on the portal. It is very fragile and will not be displayed.

like image 87
Cindy Pau Avatar answered Oct 07 '22 02:10

Cindy Pau