in the old 1.4.1 phone saver on an iOS phone used to capture the console.log object and redirect it to the xcode console.
if you want to change this code, you can include this code:
var old_log = console.log; console.log = function(txt){ //do something with log... if(old_log != null && typeof old_log == "function"){ old_log(txt); } };
source share