Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.33 KB

File metadata and controls

49 lines (36 loc) · 1.33 KB

Welcome to koa2mongolog

Version Documentation Maintenance License: MIT

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.