BetterLog. With one line of code, BetterLog extends the native apps script Logger and gives you automatic additional features like logging to a spreadsheet and more.
apps-script-oauth2. JavaScript