1.1.0 • Published 8 years ago
carbonate-logger v1.1.0
carbonate-logger
Colourful console logs using carbonate
Install
npm install --save carbonate-loggeryarn add carbonate-loggerImport
// ES2015
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