How do I "Use Logger API to add logs to your project"? (Google Script)

Viewed 12637

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?

enter image description here

2 Answers
Related