Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

bunyan-express-middleware

0.0.6 • Public • Published

README

bunyan express middleware for logging

Usage

const loggerCreator = require('bunyan-express-middleware');
const logger = require('bunyan');
 
const loggerMiddleware = loggerCreator(logger, {
  headers: ['x-extra-header'],
});
 
app.use(loggerMiddleware);
 

Keywords

none

Install

npm i bunyan-express-middleware

DownloadsWeekly Downloads

1

Version

0.0.6

License

MIT

Last publish

Collaborators

  • avatar