View application logs for Azure Functions

First, go to advanced tools, then click 'GO',

Then After you go to kudu, click Debug Console -> CMD -> LogFiles -> Application -> Functions -> yourtriggername. You will find log file there.

source:  https://stackoverflow.com/questions/68009769/azure-function-500-internal-internal-server-error-in-run-test-mode