Morgan HTTP request logger middleware for Zeit's Micro framework.
$ npm install --save micro-morgan
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
MIT © Nicolas Cisco