// Load up dependencies
if (typeof require === 'function') {
require('neon');
+ var colors = require('colors');
var Microtime = require('microtime');
}
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 () {
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));
}