2

Is it possible to read the output of console.log with jQuery? I mean if I am getting some value in console(FIREBUG) using console.log, is there a way to get it in a jquery function using some means?

1 Answer 1

4

No, but you can simply replace the method with a custom one.

var old_console_log = console.log;
var logged = [];
console.log = function() {
    var args = Array.prototype.slice.call(arguments);
    logged.push(args);
    old_console_log.apply(console, args);
}
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.