1.0.1 • Published 8 years ago

winston-extra v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

winston-extra

A extra console for winston

Usage

var winston = require('winston');

var ExtraConsole = require('winston-extra');

var logger = new (winston.Logger)({
    transports: [
        new (ExtraConsole)({
            level: 'info',
            colorize: 'all',
            prettyPrint: true,
            handleExceptions: true
        })
    ]
});

logger.info('Data to log.');
logger.error('test error');

Installation

Installing npm (node package manager)

  $ curl http://npmjs.org/install.sh | sh

Installing winston-extra

  $ npm install winston
  $ npm install winston-extra

Example

image

1.0.1

8 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago