this._socket = io.connect(this.serverUrl);
},
- log : function (logObject) {
- this._socket.emit('log', logObject);
+ log : function () {
+ var i, messageArray = [];
+
+ for (i = 0; i < arguments.length; i++) {
+ messageArray.push(arguments[i]);
+ }
+
+ this._socket.emit('log', messageArray);
}
}
});
+ if (Cobalt.Logger.Socket.__objectSpy) {
+ Cobalt.Logger.Socket.__objectSpy.destroy();
+ }
+
if (typeof require === 'function') {
global.Socket = Cobalt.Logger.Socket;
} else {