Logging an Execution Caused by a Schedule-based Hook

This example assumes that it is automatically executed by a schedule-based hook.

This code outputs the parameters specified in the server hook configuration file to the developer log.

function sendDailyMessage(params, context, done) {
  // Output a message with the passed parameters.
  console.log("Exec send w/ params " + JSON.stringify(params));
  done("CRON EXECUTED");
}