{"name":"egg-logrotater","version":"0.0.4","description":"logrotater for egg","eggPlugin":{"name":"logrotater","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"co":"^4.6.0","moment":"^2.14.1","mz":"^2.4.0"},"files":["agent.js","app","config","app.js"],"devDependencies":{"egg-ci":"1","egg-bin":"1","egg":"0.0.5","egg-mock":"0.0.2","autod":"2","eslint":"3","eslint-config-egg":"3","should":"8","supertest":"1","glob":"6","pedding":"1"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js . --fix","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"4, 6"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotater.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotater#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"0db2f091e6171c9098db2135ba2c70cf24cc5295","_id":"egg-logrotater@0.0.4","_shasum":"3da5310d96866a331c3e7f64d3ebbf41496113e2","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"jtyjty99999","email":"jtyjty99999@126.com"},"dist":{"shasum":"3da5310d96866a331c3e7f64d3ebbf41496113e2","tarball":"http://registry-npm.ywwl.com/egg-logrotater/download/egg-logrotater-0.0.4.tgz","integrity":"sha512-+A8rpThAZKhYL/AuWaGZ3i6eV4L1z23sbjCRJqeQJefpHHDcSeT7kzB273KnuqfQe7AbCxHjzym69LhfWyQAew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEP7pnRMjdWDnN89k/M2EaO+hhoZsCWrfLZ0OyXNBKNlAiA/DSjEBPUIsIPxu223amFPAeoXbEpBN/G4Zc9lVPN86g=="}],"size":3826,"noattachment":false,"key":"/egg-logrotater/-/egg-logrotater-0.0.4.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"eggjs","email":"fengmk2+eggjs@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-logrotater-0.0.4.tgz_1469027014609_0.2876391133759171"},"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":1469027016484,"_cnpm_publish_time":1469027016484,"dist-tags":{"latest":"1.0.1"}}