function sendLogsToServer(){
    axios.post('/api/logs/update',{
          exam_code: exam_id,
          student_name: student_name,
          student_email: student_email,
          key_press_count: key_press,
          tab_change_count: tab_change,
          mobile_found: mobile_phone_found,
          face_not_visible: face_not_visible,
          prohibited_object_found: prohibited_object_found,
          multiple_faces_found: multiple_faces_visible,
      })
      .then(function (response){

        console.log(response);
      })
      .catch(function (error){
        console.log(error);
      })
      
  }
/**
   * This function sends the current exam logs to the backend 
   * to update the database. This function is called every second.
   */
This function sends the current exam logs to the backend
to update the database. This function is called every second.
This function sends the current exam logs to the backend to update the database . This function is called every second .
function sendLogsToServer(){
    axios.post('/api/logs/update',{
          exam_code: exam_id,
          student_name: student_name,
          student_email: student_email,
          key_press_count: key_press,
          tab_change_count: tab_change,
          mobile_found: mobile_phone_found,
          face_not_visible: face_not_visible,
          prohibited_object_found: prohibited_object_found,
          multiple_faces_found: multiple_faces_visible,
      })
      .then(function (response){
        console.log(response);
      })
      .catch(function (error){
        console.log(error);
      })
  }
function sendLogsToServer ( ) { axios . post ( '/api/logs/update' , { exam_code : exam_id , student_name : student_name , student_email : student_email , key_press_count : key_press , tab_change_count : tab_change , mobile_found : mobile_phone_found , face_not_visible : face_not_visible , prohibited_object_found : prohibited_object_found , multiple_faces_found : multiple_faces_visible , } ) . then ( function ( response ) { console . log ( response ) ; } ) . catch ( function ( error ) { console . log ( error ) ; } ) }
This function sends the current exam logs to the backend
 to update the database.
This function sends the current exam logs to the backend to update the database .