node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

kamituel-logger

kamituel-logger

It's a wrapper around fine Winston logger. It provides aliases for common logging functions as well as middleware used to log all express.js' requests.

Usage

Simple usage:

var log = require('kamituel-logger');
 
log.i('info');
log.w('warning');
log.e('error');

Use it as express.js' middleware:

var log = require('kamituel-logger');
 
app.use(express.logger('dev', {stream: log.stream}));