micro-morgan
v0.1.0
Published
Morgan http request logger middleware for zeit's micro framework
Downloads
16,309
Maintainers
Readme
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