【发布时间】:2020-11-16 15:30:10
【问题描述】:
使用 V8,我在脚本中编写了 console.log("whatever"),运行后选择 View | Stackdriver 日志记录。然后我收到警报
现在可以在仪表板中查看此项目的 Stackdriver 日志 在 Apps 脚本仪表板中。
如果您想在 Google Cloud Platform 中查看这些日志,您将 需要为此脚本设置不同的项目。
“Apps Script Dashboard”是查看执行的链接,通常是我使用 console.log 编写的任何内容。
日志并不总是存在于执行实例中。我注意到有时会有很大的时间延迟。在这些情况下,我使用 SlidesApp.getUi().alert("whatever") 因为“谁有时间?”。
如何直接转到 Apps 脚本仪表板,而不转到警报并选择链接。
我现在已经切换到 Logger.log(whatever) 并转到 view |处决。仍然偶尔会有相当长的时间延迟。
Apps Script Dashboard和view有什么区别?处决?
console.log 和 Logger.log 有什么区别?
【问题讨论】:
-
没什么。