function execute() {
  return generateLogObjects()
  .then((arr) =>
    arr.forEach((a) => activityLog.printActivityLogString(a, aType)));
} // execute
/**
 * Generate and write out the pub stats logs (one log entry per publish "key").
 */
Generate and write out the pub stats logs (one log entry per publish "key").
Generate and write out the pub stats logs ( one log entry per publish " key " ) .
function execute() {
  return generateLogObjects()
  .then((arr) =>
    arr.forEach((a) => activityLog.printActivityLogString(a, aType)));
} 
function execute ( ) { return generateLogObjects ( ) . then ( ( arr ) => arr . forEach ( ( a ) => activityLog . printActivityLogString ( a , aType ) ) ) ; }
Generate and write out the pub stats logs (one log entry per publish "key").
Generate and write out the pub stats logs ( one log entry per publish " key " ) .
// execute