google-apps-script - 我如何 "Use Logger API to add logs to your project"? (谷歌脚本)

标签 google-apps-script

我正在尝试查看脚本的输出,但是当我转到“查看日志”时,我收到一条警报“未找到日志。使用 Logger API 将日志添加到您的项目中。”

如何添加 Logger API?

enter image description here

最佳答案

您将想要添加到您的代码中

Logger.log("Yes, this was logged");

另请参阅此页面了解更多信息:https://developers.google.com/apps-script/reference/base/logger

关于google-apps-script - 我如何 "Use Logger API to add logs to your project"? (谷歌脚本),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44846833/

相关文章:

http - 谷歌应用程序脚本 : testing doPost() with cURL

javascript - Google Sheets 脚本中的循环出错

javascript - Google App Script 将多个工作表合并为一个母版

google-apps-script - 当我使用 FormApp.openById 时没有任何反应

javascript - Google 脚本项目触发器未运行?

google-apps-script - 谷歌电子表格 setBackgroundColors() "Deprecated"

google-apps-script - Google Apps 脚本在数组中查找值

javascript - 使用应用程序脚本在谷歌电子表格中拆分(分开)合并表格单元格

javascript - 在 HTML 中调用 Google Apps 脚本函数

javascript - 类型错误 : Cannot read property "source" from undefined