问题描述
我向 Python Azure 函数添加了诊断设置...
...但在 Azure Log Analytics 中没有显示此设置的表。
根据 docs here,我应该看到一个名为 FunctionAppLogs
的表。
日志在哪里?
编辑 1: 一天后仍然丢失:
编辑 2:Log Analytics 工作区正确,并且函数在过去 24 小时内执行了多次。
解决方法
这是正常的,因为日志信息不会立即显示出来。它有一段时间的延迟。根据我的测试,它在一个小时后出现。
====================更新======================
有两种猜测,你可以查一下:
-
Log Analytics workspace
是否配置正确。
- 无论您的
function
是否已运行,在函数运行之前都不会生成 FunctionAppLogs
表。