Python Function App: LOGGING Best Practices

SeaDude 106 Reputation points
2020-06-17T22:56:13.583+00:00

Hello,

I created a Python Functon App that sometimes works and sometimes doesn't. I have an Application Insights instance running, but other than catching an "Exception" message that flows through the RealTime Monitoring, I'm struggling to track down the root causes.

Hoping the community here can help with:

  1. Examples of logging from within your python function app
  2. Example AppInsights queries (kusto) to help pinpoint runtime issues

Thanks so much. Looking forward to working with you all.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,476 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,601 Reputation points Microsoft Employee
    2020-06-18T11:34:16.197+00:00

    You can use the built-in logging module itself which is tied to Application Insights as mentioned in the Azure Functions Python Developer Guide. You can then check these logs from the monitor tab itself.

    0 comments No comments