tree: 10df5b6ea33141a0280934545c23f235997de595 [path history] [tgz]
  1. node_modules/
  2. test/
  3. .npmignore
  4. index.js
  5. package.json
  6. README.md
node_modules/log-colors/README.md

Log Colors

A colorized winston console logger. Sometimes you want a very simple logger which just logs to this console. However colors and pretty printing are useful enough to have as a default. For these cases use log-colors

Installation

npm install -S log-colors

Usage

Use as you would a standard winston logger

var logger = require('log-colors')
logger.debug('this should be colorized and pretty-printed', {
  foo: 'bar'
}

Test

Execute the command

npm test