{"_id":"egg-logrotater","_rev":"1213635","name":"egg-logrotater","description":"logrotater for egg","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"time":{"modified":"2021-10-13T05:46:51.000Z","created":"2016-05-26T09:07:35.046Z","1.0.1":"2016-08-10T09:24:37.548Z","1.0.0":"2016-07-26T02:13:52.300Z","0.0.4":"2016-07-20T15:03:36.484Z","0.0.2":"2016-07-20T12:57:35.260Z","0.0.1":"2016-05-26T09:07:35.046Z"},"users":{},"author":{"name":"tianyi.jiangty"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotater.git"},"versions":{"1.0.1":{"name":"egg-logrotater","version":"1.0.1","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":{"autod":"2","egg":"*","egg-bin":"1","egg-ci":"1","egg-mock":"*","eslint":"3","eslint-config-egg":"3","glob":"6","pedding":"1","should":"8","supertest":"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 test app config *.js","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":"7793b2fded14a76b2831e690fe5a16f991593751","_id":"egg-logrotater@1.0.1","_shasum":"40bec14dc675b6301d197ab0bc9073bb8d59e707","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"40bec14dc675b6301d197ab0bc9073bb8d59e707","size":4091,"noattachment":false,"key":"/egg-logrotater/-/egg-logrotater-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotater/download/egg-logrotater-1.0.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/egg-logrotater-1.0.1.tgz_1470821074785_0.5697497471701354"},"directories":{},"publish_time":1470821077548,"_cnpm_publish_time":1470821077548,"_hasShrinkwrap":false},"1.0.0":{"name":"egg-logrotater","version":"1.0.0","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":{"autod":"2","egg":"*","egg-bin":"1","egg-ci":"1","egg-mock":"*","eslint":"3","eslint-config-egg":"3","glob":"6","pedding":"1","should":"8","supertest":"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 test app config *.js","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":"caf541defcbf9a0ac1fd0cd23f3f132d0b5efed1","_id":"egg-logrotater@1.0.0","_shasum":"39f858ad8d6cfece9a4411acf37c0deccf74fb76","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"dist":{"shasum":"39f858ad8d6cfece9a4411acf37c0deccf74fb76","size":4039,"noattachment":false,"key":"/egg-logrotater/-/egg-logrotater-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotater/download/egg-logrotater-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-logrotater-1.0.0.tgz_1469499230622_0.20007108431309462"},"directories":{},"publish_time":1469499232300,"_cnpm_publish_time":1469499232300,"_hasShrinkwrap":false},"0.0.4":{"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","size":3826,"noattachment":false,"key":"/egg-logrotater/-/egg-logrotater-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotater/download/egg-logrotater-0.0.4.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-logrotater-0.0.4.tgz_1469027014609_0.2876391133759171"},"directories":{},"publish_time":1469027016484,"_cnpm_publish_time":1469027016484,"_hasShrinkwrap":false},"0.0.2":{"name":"egg-logrotater","version":"0.0.2","description":"logrotater for egg","eggPlugin":{"name":"logrotater"},"keywords":["egg","plugin"],"dependencies":{"co":"^4.6.0","moment":"^2.14.1","mz":"^2.4.0"},"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":"a493fe11b9efce611115bcb6b639e9beb68ff039","_id":"egg-logrotater@0.0.2","_shasum":"ba363f1f2b04a2d05ae75ee7535160de20884ca1","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"jtyjty99999","email":"jtyjty99999@126.com"},"dist":{"shasum":"ba363f1f2b04a2d05ae75ee7535160de20884ca1","size":112798,"noattachment":false,"key":"/egg-logrotater/-/egg-logrotater-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotater/download/egg-logrotater-0.0.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-logrotater-0.0.2.tgz_1469019453509_0.515843256842345"},"directories":{},"publish_time":1469019455260,"_cnpm_publish_time":1469019455260,"_hasShrinkwrap":false},"0.0.1":{"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","size":432,"noattachment":false,"key":"/egg-logrotater/-/egg-logrotater-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotater/download/egg-logrotater-0.0.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"},{"name":"popomore","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-logrotater-0.0.1.tgz_1464253654535_0.08974992507137358"},"directories":{},"publish_time":1464253655046,"_cnpm_publish_time":1464253655046,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/eggjs/egg-logrotater#readme","bugs":{"url":"https://github.com/eggjs/egg/issues"},"license":"MIT"}