koa2mongolog
v1.1.0
Published
Koa.js middleware, request/response save to mongodb
Downloads
4
Readme
Koa.js middleware, request/response save to mongodb
Install
npm i koa2mongolog
Usage
const Koa = require('koa');
const app = new Koa();
const bodyParser = require('koa-bodyparser');
const logger = require('koa2mongolog');
app.use(logger({ url: 'mongodb://localhost:27017/',db: 'logs',collection: 'koalogs' }));
app.use(router.routes());
app.listen(port);
Author
Dmitriy Menshov
Show your support
Give a ⭐️ if this project helped you!
License
This project is MIT licensed.