var _ = require('lodash'),
    rewriteStack = require('../exec').rewriteStack;

module.exports = function(window) {
  window.console = {
    log: delegate('log'),
    info: delegate('info'),
    error: delegate('error'),
    warn: delegate('warn'),

    time: delegate('time'),
    timeEnd: delegate('timeEnd')
  };
};

function delegate(name) {
  return function() {
    console[name].apply(console, mapArgs(arguments));
  };
}

function mapArgs(args) {
  return _.map(args, function(arg) {
    if (arg && arg.split) {
      arg = rewriteStack(arg);
    }
    return arg;
  });
}

@@ -148,16 +148,24 @@
 elegate(
+window, 
 'log'),%0A
@@ -183,16 +183,24 @@
 elegate(
+window, 
 'info'),
@@ -220,16 +220,24 @@
 elegate(
+window, 
 'error')
@@ -257,16 +257,24 @@
 elegate(
+window, 
 'warn'),
@@ -290,24 +290,32 @@
 e: delegate(
+window, 
 'time'),%0A   
@@ -333,16 +333,24 @@
 elegate(
+window, 
 'timeEnd
@@ -379,16 +379,24 @@
 elegate(
+window, 
 name) %7B%0A
@@ -468,16 +468,45 @@
 guments)
+.concat(%5B'id_' + window._id%5D)
 );%0A  %7D;%0A

Add window._id to all console operations