Is it possible to export Google Apps Script Execution transcript

后端 未结 1 455
礼貌的吻别
礼貌的吻别 2021-01-16 08:23

I have a written a web Apps Script which is deployed to run in the context of user accessing the web app.

Is it possible to export web Apps Script\'s Execution Tran

相关标签:
1条回答
  • 2021-01-16 08:54

    Not directly.

    You won't get a full stack trace, but you can be meticulous with Logging everything you want to be notified with. At the end of the script you could extract the log and email that.

    Logger.getLog();

    If you really wanted to be fancy, there are a few implementations of custom Loggers which extent the standard Logger.log(). For instance if you had an object that every time you send a log message to it, it would time-stamp overall duration, time since last log and the message passed to it, all to Logger.log. Same object could have a getLog(0 method of its own which did extra stuff - should you wish.

    There is a notable logger library at Google Apps Script Examples by Peter Herrmann which will also allow you to log to a spreadsheet.

    But in short, no, you cannot export the execution log.

    0 讨论(0)
提交回复
热议问题