Search code examples
logginggoogle-apps-scriptweb-applications

How to view the logging of Google Web App when other users are executing it?


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

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?


Solution

  • You have two ways of seeing the executions:

    • 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