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

查看:92
本文介绍了当其他用户正在执行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脚本仪表板中,我可以看到webapp的执行情况和日志记录.但是,只有在我(应用程序的所有者)执行日志记录时,才会看到该日志记录.当另一个用户执行webapp时,我只能看到执行情况,而看不到App Script仪表板中的日志记录.

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日志查看器:View-> 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天全站免登陆