I have tried the functionality of error logging with the ajaxError.
Its working perfectly well but it does not work with cross domain.
$(document).ready(function(){
$(document).ajaxError(function(event,request,settings){
console.log('error');
});
});
Is there a way to log errors for the AJAX API calls for cross domain(https) , in similar way as above ?