vvv
v1.1.0
Published
verbose logging by using -vvv
Downloads
17
Readme
vvv
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][downloads-url] [![Dependency Status][david-image]][david-url] [npm-image]: https://img.shields.io/npm/v/vvv.svg?style=flat-square [npm-url]: https://npmjs.org/package/vvv [downloads-image]: http://img.shields.io/npm/dm/vvv.svg?style=flat-square [downloads-url]: https://npmjs.org/package/vvv [david-image]: http://img.shields.io/david/chunpu/vvv.svg?style=flat-square [david-url]: https://david-dm.org/chunpu/vvv
verbose logging by using -vvv
Installation
npm i vvv
Usage
app.js
require('vvv')
log.v('I am v')
log.vv('I am vv')
log.vvv('I am vvv')
log.vvvv('I am vvvv')
node app.js -vv
Advanced
Custom your log function
e.g.
var vvv = require('vvv')
var Debug = require('debug')
Debug.enable('v*')
vvv.custom(function(level) {
var key = ''
for (var i = 0; i < level; i++) {
key += 'v'
}
return Debug(key)
})