function logCreationEvent(id, type, message, time) {
    
    if (logMode === 'l') {
      if (!eventList.creationEvents[id]) {
        eventList.creationEvents[id] =  [];
      }
      eventList.creationEvents[id].push({'type': type, 'event': message, "timestamp": time});
    } else if (logMode === 'v') {
      console.log(type + ': Agent ' + id +  ' ' + message + ' on ' + time);
    }

  }
function logCreationEvent(id, type, message, time) {
    
    if (logMode === 'l') {
      if (!eventList.creationEvents[id]) {
        eventList.creationEvents[id] =  [];
      }
      eventList.creationEvents[id].push({'type': type, 'event': message, "timestamp": time});
    } else if (logMode === 'v') {
      console.log(type + ': Agent ' + id +  ' ' + message + ' on ' + time);
    }

  }
function logCreationEvent ( id , type , message , time ) { if ( logMode === 'l' ) { if ( ! eventList . creationEvents [ id ] ) { eventList . creationEvents [ id ] = [ ] ; } eventList . creationEvents [ id ] . push ( { 'type' : type , 'event' : message , "timestamp" : time } ) ; } else if ( logMode === 'v' ) { console . log ( type + ': Agent ' + id + ' ' + message + ' on ' + time ) ; } }
records the agent's validation and creation events in a temporary structure if log method is 'l' or outputs the same events to the console if method is 'v'
records the agent s validation and creation events in a temporary structure if log method is l or outputs the same events to the console if method is v