lib/journal.js
function report(logFile) {
    var defaultLogFile = (new Date()).toJSON() + '.log';
    var data = JSON.stringify(eventList, null, 3);

    if (logFile) {
      fs.writeFile(logFile, data, function(err) {
        if(err) {
          console.log('\nCould not write log to file "' + logFile + '"\n' + err);
          fs.writeFile(defaultLogFile, data, function(err) {
            if(err) {
              console.log('Could not write log file: ' + err);
            } else {
              console.log('Log was written on default file "' + defaultLogFile + '"');
            }
          });
        }
      });
    } else {
      fs.writeFile(defaultLogFile, data, function(err) {
        if(err) {
          console.log('Could not write log file: ' + err);
        }
      });
    }
  }
function report(logFile) {
    var defaultLogFile = (new Date()).toJSON() + '.log';
    var data = JSON.stringify(eventList, null, 3);

    if (logFile) {
      fs.writeFile(logFile, data, function(err) {
        if(err) {
          console.log('\nCould not write log to file "' + logFile + '"\n' + err);
          fs.writeFile(defaultLogFile, data, function(err) {
            if(err) {
              console.log('Could not write log file: ' + err);
            } else {
              console.log('Log was written on default file "' + defaultLogFile + '"');
            }
          });
        }
      });
    } else {
      fs.writeFile(defaultLogFile, data, function(err) {
        if(err) {
          console.log('Could not write log file: ' + err);
        }
      });
    }
  }
outputs the contents of the temporary creation and execution structure to a specific file defined by the user; if file is not defined outputs to a default file; otherwise outputs error to the console