X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/blobdiff_plain/8ef6f979233b08d6c566a982896ed8f560a3243e..97a7ece70e89b973468b62e1775a33762a37258e:/lib/cobalt.js diff --git a/lib/cobalt.js b/lib/cobalt.js index d129714..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'); } @@ -147,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)); }