Skip to content

Instantly share code, notes, and snippets.

@adrienjoly
Created October 19, 2011 18:48
Show Gist options
  • Save adrienjoly/1299267 to your computer and use it in GitHub Desktop.
Save adrienjoly/1299267 to your computer and use it in GitHub Desktop.
console.log proxy function
console.log = function() {
for (var i in arguments)
if (arguments[i] instanceof Object || arguments[i] instanceof Array)
arguments[i] = sys.inspect(arguments[i]);
log(Array.prototype.join.call(arguments, " ") + '\n');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment