How to log information?

Here is a tip how to log information.

Logs

 

Source code

function showDate(){
  var dt = new Date();
  Logger.log('Current Date -> ' + dt);
}

 

Format

Logger.log(string)

 

Parameters

string … The information to be logged.

 

Responses

None

 

How to see the logged information?

Please go to “View” -> “Logs”

How to open the Logs

Leave a Comment