code: function consoleProxy(ob){
    // list from http://nodejs.org/api/stdio.html
    var methods = ["dir", "time", "timeEnd", "trace", "assert"];
    methods.forEach(function(method){
      if (ob[method]) return;
      ob[method] = function(){
        return console[method].apply(console, arguments);
      };
    });
  }
docs: Just proxy methods we don't care about to original console object