X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/blobdiff_plain/bdedb5e54032363de8afa322fadae0e2cb2132d0..ce8edf20a15c643b05c7867c416123c16debd120:/lib/loggers/socket.js?ds=inline diff --git a/lib/loggers/socket.js b/lib/loggers/socket.js index 8d0ff55..d9ae055 100644 --- a/lib/loggers/socket.js +++ b/lib/loggers/socket.js @@ -22,12 +22,22 @@ 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 {