Reputation: 667
Is there a way to print the contents of google scripts logging console (tools-> script editor -> view -> logs) into the spreadsheet?
Upvotes: 0
Views: 1955
Reputation: 9862
var stringToWrite = Logger.getLog();
SpreadsheetApp.getActive().getActiveSheet().getRange("A1").setValue(stringToWrite);
See the documentation: https://developers.google.com/apps-script/reference/base/logger
Upvotes: 1