如何在其他用户执行时查看 Google Web App 的日志记录? [英] How to view the logging of Google Web App when other users are executing it?

查看:19
本文介绍了如何在其他用户执行时查看 Google Web App 的日志记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用选项 execute the app as: User accessing the web app 部署了我的 Google App Script Webapp.

I deployed my Google App Script Webapp with the optionen execute the app as: User accessing the web app.

在 App Script Dashboard 中,我可以看到 webapp 的执行和日志记录.但是,当我(应用程序的所有者)执行它时,我只会看到日志记录.当另一个用户执行 webapp 时,我只能看到执行,但我看不到 App Script Dashboard 中的日志记录.

In the App Script Dashboard I can see the executions of the webapp and the logging. However I only see the logging when I (the owner of the app) executes it. When another user executes the webapp I only see the executions but I can not see the logging int the App Script Dashboard.

我怎样才能独立于执行应用程序的用户查看应用程序的日志记录?

How can I also see the logging of the app independent of the user executing it?

推荐答案

您有两种查看执行情况的方式:

You have two ways of seeing the executions:

  • 允许其他用户编辑脚本(如果它处于开发模式),那么您将能够从 Apps 脚本仪表板看到所有执行.
  • 您可以将脚本链接到 GCP 项目,然后您将能够从 GCP 日志查看器中看到执行情况.您可以从脚本进入 GCP 日志查看器:查看 ->Stackdriver 日志记录
  • Allow the other users to edit the script (if it is on developing mode), then you will be able to see all the executions from the Apps Script Dashboard.
  • You can link the script to a GCP project, and then you will be able to see the executions from the GCP Logs viewer. You can enter the GCP logs viewer from the script: View -> Stackdriver Logging

这篇关于如何在其他用户执行时查看 Google Web App 的日志记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆