egg-mongoose-logger
Install
$ npm i egg-mongoose-logger --save
Usage
// {app_root}/config/plugin.jsexportsmongooseLogger = enable: true package: 'egg-mongoose-logger';
Configuration
// {app_root}/config/config.default.jsexportsmongooseLogger = debug: true // custom formatter, optional { const query = JSON; const options = JSON; return `db.getCollection('').(, )`; };
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.