公告
财富商城
积分规则
提问
发文
2019-01-27 21:33发布
狗以群分
I'm trying to see output of a script, but when I go to "View Logs" I get an alert "No logs found. Use Logger API to add logs to your project."
How do I add the Logger API?
You will want to add into your code
Logger.log("Yes, this was logged");
Also reference this page for more info: https://developers.google.com/apps-script/reference/base/logger
Quote:
You need to have access to the Apps Script's Cloud Platform project in order to view the logs the script creates.
Apps Script Documentation - Logging Requirements
You can not just add:
console.log();
To your script and have it work.
From the "View" menu, choose "Console logs"
You will be prompted to Enable Console Logging.
最多设置5个标签!
You will want to add into your code
Also reference this page for more info: https://developers.google.com/apps-script/reference/base/logger
Quote:
Apps Script Documentation - Logging Requirements
You can not just add:
To your script and have it work.
From the "View" menu, choose "Console logs"
You will be prompted to Enable Console Logging.