code: function (message, data) {
                  var datastr = data === undefined ? "no-data" : inspect(data);
                  logfn(format(" [EMIT] %s %s", pad(message), datastr));
                  EEProto.emit.apply(this, arguments);
              }
docs: Spying on Event Emitter methods.