Skip to content

kissss/winston-extra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

extra winston console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published