Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickcis/micro-morgan
Morgan http request logger middleware for zeit's micro framework.
https://github.com/nickcis/micro-morgan
Last synced: 3 months ago
JSON representation
Morgan http request logger middleware for zeit's micro framework.
- Host: GitHub
- URL: https://github.com/nickcis/micro-morgan
- Owner: NickCis
- License: mit
- Created: 2019-03-21T02:24:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T02:37:02.000Z (over 5 years ago)
- Last Synced: 2024-07-10T15:03:37.081Z (4 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micro - micro-morgan - [Morgan](https://github.com/expressjs/morgan) HTTP request logger middleware for Zeit's Micro framework. (Modules / Loggers, Errors & Reporting)
README
# micro-morgan
> [Morgan](https://github.com/expressjs/morgan) HTTP request logger middleware for Zeit's [Micro](https://github.com/zeit/micro) framework.
## Install
```
$ npm install --save micro-morgan
```## Usage
```js
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](https://github.com/expressjs/morgan)
## License
MIT © [Nicolas Cisco](https://nckweb.com.ar)