]>
git.r.bdr.sh - rbdr/cologne/blob - lib/loggers/socket.js
8d0ff55dd859b6e48eaa1024799d537e8ab5ce81
4 // Load up dependencies
5 if (typeof require
=== 'function') {
6 var Ne
= require('neon');
10 Module
= global
.Module
;
15 Module(Cobalt
, 'Logger')({});
17 Cobalt
.Logger
.Socket
= Class(Cobalt
.Logger
, 'Socket')({
22 this._socket
= io
.connect(this.serverUrl
);
25 log : function (logObject
) {
26 this._socket
.emit('log', logObject
);
31 if (typeof require
=== 'function') {
32 global
.Socket
= Cobalt
.Logger
.Socket
;
34 global
.Cobalt
.Logger
.Socket
= Cobalt
.Logger
.Socket
;
36 }(typeof window
!== 'undefined' ? window : (typeof exports
!== 'undefined' ? exports : self
)));