{"name":"egg-logrotater","version":"0.0.1","description":"egg plugin <egg-logrotater>","keywords":["egg","eggjs","egg-plugin"],"homepage":"https://github.com/eggjs/egg-logrotater","license":"MIT","author":{"name":"eggjs"},"contributors":[{"name":"TZ","email":"atian25@qq.com"},{"name":"popomore","email":"sakura9515@gmail.com"},{"name":"fengmk2","email":"m@fengmk2.com"},{"name":"dead-horse","email":"heyiyu.deadhorse@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-logrotater.git"},"bugs":{"url":"https://github.com/eggjs/egg-logrotater/issues"},"_id":"egg-logrotater@0.0.1","scripts":{},"_shasum":"b7e45f4aa4926cf1603c9fc0da66be36197f5651","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"b7e45f4aa4926cf1603c9fc0da66be36197f5651","tarball":"http://registry-npm.ywwl.com/egg-logrotater/download/egg-logrotater-0.0.1.tgz","integrity":"sha512-33ehDfCU2wslpCU4dmnSvB8H6HPuy1HC7Pazpy7NzqDW5nisokPq5F/X+q5xi5omQU/PZK7VnwCTBmuRsF8y5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQdPIbn0cMikWV2EztBCnwhNwfDHDnRgpzcbQDhrqLgwIhAMLDDVChhYa8pMpZuhGGujmuGhkK4IHJ5s/y2DT2f8MK"}],"size":432,"noattachment":false,"key":"/egg-logrotater/-/egg-logrotater-0.0.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-logrotater-0.0.1.tgz_1464253654535_0.08974992507137358"},"directories":{},"readme":"# egg-logrotater\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-logrotater.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-logrotater\n[travis-image]: https://img.shields.io/travis/eggjs/egg-logrotater.svg?style=flat-square\n[travis-url]: https://travis-ci.org/eggjs/egg-logrotater\n[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-logrotater.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/eggjs/egg-logrotater?branch=master\n[david-image]: https://img.shields.io/david/eggjs/egg-logrotater.svg?style=flat-square\n[david-url]: https://david-dm.org/eggjs/egg-logrotater\n[snyk-image]: https://snyk.io/test/npm/egg-logrotater/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-logrotater\n[download-image]: https://img.shields.io/npm/dm/egg-logrotater.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-logrotater\n\nLog rotate plugin for egg, default rotate log files under `config.logger.rotateLogDirs`.Run by [egg-schedule](https://github.com/eggjs/egg-schedule)\n\n## Install\n\n```bash\n$ npm i egg-logrotater\n```\n\n## Usage\n\n\n- `plugin.js`\n\n```js\nexports.logrotater = true;\n```\n\n- `config.default.js`\n\n```js\n// if any files need rotate by file size, config here\nexports.logrotater = {\n  filesRotateBySize: [],           // Array for files path which need rotate.\n  maxFileSize: 50 * 1024 * 1024,   // Max file size to judge if any file need rotate\n  maxFiles: 10,                    // pieces rotate by size\n  rotateDuration: 60000,           // time interval to judge if any file need rotate\n  maxDays: 31,                     // keep max days log files, default is `31`. Set `0` to keep all logs\n};\n```\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1464253655046,"_cnpm_publish_time":1464253655046,"dist-tags":{"latest":"1.0.1"}}