Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 745 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 745 Bytes

spm-log

[![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.

Installtion

$ npm i --save spm-log

Usage

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~');

Screenshot

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' }
})