How do I "Use Logger API to add logs to your project"? (Google Script) : <p>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."</p>

<p>How do I add the Logger API?</p>

<p><a href="https://i.stack.imgur.com/Dcy1A.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Dcy1A.png" alt="enter image description here"></a></p>
