[![NPM version][npm-image]][npm-url] [npm-image]: https://img.shields.io/npm/v/spm-log.svg?style=flat [npm-url]: https://npmjs.org/package/spm-log
A console.log wrapper for spm or whatever.
$ npm i --save spm-log
var log = require('spm-log');
log.debug('Debug Label', 'BaLa~ BaLa~ BaLa~');
log.info('Info Label', 'BaLa~ BaLa~ BaLa~');
log.warn('Warn Label', 'BaLa~ BaLa~ BaLa~');
log.error('Error Label', 'BaLa~ BaLa~ BaLa~');
You can disable the colors globally:
log.config({
color: false
})
log.config({
color: { info: false }
})
You can also customize the colors:
log.config({
color: { debug: 'white' }
})