Currently is dev!
$ npm install consoleDev
// Include consoleDev
var consoleDev = require('consoleDev');
// Erase a list logger
consoleDev.setEraseLogList([
(sails && sails.log) ? sails.log : void 0
]);
// Set the different listener modes
consoleDev.setLogLevel('silent');
consoleDev.setLogLevel('error');
consoleDev.setLogLevel('warn');
consoleDev.setLogLevel('debug');
consoleDev.setLogLevel('info');
consoleDev.setLogLevel('verbose');
consoleDev.setLogLevel('silly');
// Show data
consoleDev.log('I\'m a log');
consoleDev.silly('I\'m a silly');
consoleDev.input('I\'m a input');
consoleDev.verbose('I\'m a verbose');
consoleDev.prompt('I\'m a prompt');
consoleDev.info('I\'m a info');
consoleDev.data('I\'m a data');
consoleDev.help('I\'m a help');
consoleDev.warn('I\'m a warn');
consoleDev.debug('I\'m a debug');
consoleDev.error('I\'m a error');
consoleDev.setParams({
showPrefix : true, // Show prefix before log (default to true)
fullColorize : true, // Colorize full string into log
parenthesisObject : true // Show parenthesis before/after object/array (default to true)
});
I'm happy to receive bug reports, fixes, documentation enhancements, and any other improvements.
- Customise color