微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Python Azure 功能的诊断设置不起作用

如何解决Python Azure 功能的诊断设置不起作用

我向 Python Azure 函数添加了诊断设置...

enter image description here

...但在 Azure Log Analytics 中没有显示此设置的表。

enter image description here

根据 docs here,我应该看到一个名为 FunctionAppLogs 的表。

日志在哪里?

编辑 1: 一天后仍然丢失:

enter image description here

编辑 2:Log Analytics 工作区正确,并且函数在过去 24 小时内执行了多次。

enter image description here

enter image description here

  • 仍然没有FunctionAppLogs表:

enter image description here

解决方法

这是正常的,因为日志信息不会立即显示出来。它有一段时间的延迟。根据我的测试,它在一个小时后出现。

enter image description here

====================更新======================

有两种猜测,你可以查一下:

  1. Log Analytics workspace 是否配置正确。

enter image description here

  1. 无论您的 function 是否已运行,在函数运行之前都不会生成 FunctionAppLogs 表。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。