Console.log Shortcut

Here is console.log shortcut which could be useful debugging tool:

// usage: log('inside coolFunc',this,arguments);
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
    console.log( );

It is taken from this Paul Irish blog.

Though here is various alternatives to console.log with added advantage which I have not checked.