1.1.0 • Published 2 years ago

koa2mongolog v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

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.

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago