X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/blobdiff_plain/db6bc3cb0117030b2d31d55850d91f58248a8e81..2166f9803a01b2706955cac3f366d7aa9fe988c9:/lib/cobalt.js?ds=sidebyside diff --git a/lib/cobalt.js b/lib/cobalt.js index 9519bed..b5dd94c 100644 --- a/lib/cobalt.js +++ b/lib/cobalt.js @@ -1,6 +1,7 @@ // Load up dependencies if (typeof require === 'function') { require('neon'); + var colors = require('colors'); var Microtime = require('microtime'); } @@ -12,10 +13,12 @@ Module(Cobalt, 'Formatter')({}); if (typeof require === 'function') { // Formatters require('./formatters/token.js'); + require('./formatters/simple.js'); // Loggers require('./loggers/console.js'); require('./loggers/socket.js'); + require('./loggers/file.js'); } Cobalt.now = function () { @@ -145,6 +148,8 @@ Class(Cobalt, 'Console')({ for (i = 1; i < arguments.length; i++) { if (typeof arguments[i] === 'undefined') { logObjectArray.push(co.buildLog("undefined", severity)); + } else if (arguments[i] === null) { + logObjectArray.push(co.buildLog("null", severity)); } else { logObjectArray.push(co.buildLog(arguments[i], severity)); }