Skip to content

menshov-d/koa2mongolog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Koa.js middleware, request/response save to mongodb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors