Azure:应用程序日志已关闭。您可以使用 'Diagnostic logs' 设置打开它们

Azure: Application logs are switched off. You can turn them on using the 'Diagnostic logs' settings

希望这是一个快速的问题。

我有一个 Microsoft Azure Web 应用程序。

如果我在 portal.azure.com 的网络应用程序中导航到以下位置:

Microsoft Azure > Browse > All resources > (MY APP) > Tools > Streaming logs

我收到错误消息:

Application logs are switched off. You can turn them on using the 'Diagnostic logs' settings.

但是,它没有提供我去哪里做这件事的参考。在 "Application Settings" 下检查应用程序,我没有看到任何与此名称匹配的内容,并且我没有找到任何 "logging" 设置来启用此 "Streaming Logs".

任何人都可以帮我指出如何打开它吗?

我明白了。 portal.azure.com以内:

Microsoft Azure > (My App) > Settings > Logs

启用日志的所有设置。

3 年后(2018 年 7 月),事情似乎重新安排了。

来自 https://docs.microsoft.com/en-us/azure/app-service/web-sites-enable-diagnostic-log.

Azure > (My App) > Settings / Monitoring (down LH Side) > Diagnostic Logs 开启。

在 Azure 中启用您的应用程序的诊断日志记录。前往:

Portal.azure.com > (Your App) > Diagnostic settings > Add Diagnostic setting

查看您的应用程序和网络服务器日志。前往:

(Your App) > Log Stream 

在这里打开它:

Azure -> App Service -> App Service logs -> Application Logging (Filesystem) -> ON

然后12小时你可以在这里查看:

Azure -> App Service -> Log stream