Skip to content

spmjs/spm-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A console.log wrapper for spm.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •