Skip to content

Logging for nodejs express apps with winston

License

Notifications You must be signed in to change notification settings

Superpedestrian/sp-winston-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Logging for nodejs express apps with winston

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published