在azure静态Web应用程序中运行的nextjs应用程序的服务器日志在哪里?

问题描述 投票:0回答:1

我已成功使用 azure 静态 Web 应用程序部署 nextjs 14 应用程序。在某些页面上我收到服务器错误:

> Application error: a server-side exception has occurred (see the
> server logs for more information).

我在哪里可以找到这些信息?我已激活应用程序洞察。

azure next.js azure-application-insights next.js13 azure-static-web-app
1个回答
0
投票

我在哪里可以找到这些信息?我已激活应用程序洞察。

一旦出现应用程序错误或异常,请导航至应用程序洞察。 enter image description here

  • 前往调查

enter image description here

  • 点击
    View to logs
    并按照以下查询错误日志。
union isfuzzy=true
    exceptions,
    pageViews,
    traces,
    dependencies
| where timestamp > datetime("2024-04-09T10:13:28.407Z") and timestamp < datetime("2024-04-10T10:13:28.407Z")
| order by timestamp desc
| take 100

异常日志:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.