Can I extend the console object (for rerouting the logging) in javascript?

Try following:

(function() {
    var exLog = console.log;
    console.log = function(msg) {
        exLog.apply(this, arguments);
        alert(msg);
    }
})()

Leave a Comment