index.js
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);
    };
  });
}
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);
    };
  });
}
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 ) ; } ; } ) ; }
Just proxy methods we don't care about to original console object
Just proxy methods we don t care about to original console object