Thanks for reaching out to Q&A.
Azure Functions offers built-in integration with Azure Application Insights to monitor functions : https://learn.microsoft.com/en-us/azure/azure-functions/functions-monitoring
You can log information to App insights and then view the detailed logs in Log analytics workspace using Kusto queries. To be specific, the "Traces" , "FunctionappLogs" and "requests" table would give you more detailed logs.
Python Functions with App insights : https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-python?tabs=azurecli-linux%2Capplication-level#logging
Live stream : https://learn.microsoft.com/en-us/azure/azure-functions/streaming-logs#live-metrics-stream
Querying Logs: https://learn.microsoft.com/en-us/azure/azure-functions/functions-monitor-log-analytics?tabs=python#querying-the-logs
I hope this helps!
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.