0.1.2 • Published 8 years ago

sp-winston-express v0.1.2

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

sp-winston-express

Deprecated

Usage

var log = require('sp-winston-express');
// To use with morgan as log stream:
app.use(morgan('combined', {stream: log.stream}));

// At end of chain to do exception handling add
app.use(log.errorLogger);

// Otherwise use like winston with things like:
log.info('Hi');
log.error('Bad things!');

Changes

0.1.2

  • Corrected formatter raising an exception

0.1.1

  • Added missing dependencies
0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago