Skip to content

Morgan http request logger middleware for zeit's micro framework.

License

Notifications You must be signed in to change notification settings

NickCis/micro-morgan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro-morgan

Morgan HTTP request logger middleware for Zeit's Micro framework.

Install

$ npm install --save micro-morgan

Usage

const { send } = require('micro');
const morgan = require('micro-morgan');

module.exports = morgan('tiny')(async (req, res) => {
  send(res, 200, 'Hello from micro')
});

Arguments are passed directly to morgan. For more information about formats, please check morgan docs

License

MIT © Nicolas Cisco

About

Morgan http request logger middleware for zeit's micro framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published