carbonate-logger
Colourful console logs using carbonate
Install
npm install --save carbonate-logger
yarn add carbonate-logger
Import
import log from 'carbonate-logger'
// CommonJS
var log = require('carbonate-logger')
Usage
log (str[, ...values])
Log a carbonate sprintf-style string, interpolated with values
.
- str {String} (required) String to interpolate and log
- values {*} (optional) Values to interpolate into
str
See the carbonate
docs for information on what str
should look like.
Also available:
log.error (str[, ...values])
log.warn (str[, ...values])
log.info (str[, ...values])
log.quiet (bool)
Pass true
to silence the logger.
- bool {Boolean} (required) Is logger silent
Contributing
All pull requests and issues welcome!
If you're not sure how, check out the great video tutorials on egghead.io!
License
MIT © Sam Gluck