embark/lib/logger.js

25 lines
321 B
JavaScript
Raw Normal View History

2016-08-22 03:40:05 +00:00
var colors = require('colors');
var Logger = {
logLevel: 'info',
info: function(txt) {
console.log(txt.blue);
},
log: function(txt) {
console.log(txt);
},
warn: function(txt) {
console.log(txt.yellow);
},
error: function(txt) {
console.log(txt.red);
}
};
module.exports = Logger;