{"_id":"egg-logrotator","_rev":"1213326","name":"egg-logrotator","description":"logrotator for egg","dist-tags":{"latest":"3.1.0","latest-2":"2.3.3"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"time":{"modified":"2021-10-13T05:46:43.000Z","created":"2016-08-17T04:25:37.402Z","3.1.0":"2019-04-25T06:51:11.252Z","3.0.7":"2019-03-13T16:04:39.584Z","3.0.6":"2019-03-06T15:48:41.467Z","2.3.3":"2018-12-05T03:29:18.367Z","3.0.5":"2018-12-04T11:02:56.586Z","3.0.4":"2018-10-23T19:15:04.665Z","2.3.2":"2018-05-09T12:48:14.573Z","3.0.3":"2018-03-29T11:28:14.910Z","3.0.2":"2018-02-23T07:00:33.851Z","2.3.1":"2017-12-11T03:51:53.116Z","3.0.1":"2017-12-11T03:27:32.529Z","3.0.0":"2017-11-10T10:22:35.342Z","2.3.0":"2017-11-02T11:53:14.905Z","2.2.3":"2017-06-04T14:57:12.919Z","2.2.2":"2016-10-27T15:31:03.186Z","2.2.1":"2016-10-27T10:27:38.828Z","2.2.0":"2016-09-29T15:46:30.629Z","2.1.0":"2016-08-29T11:28:52.617Z","2.0.0":"2016-08-17T04:25:37.402Z"},"users":{},"author":{"name":"tianyi.jiangty"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"versions":{"3.1.0":{"name":"egg-logrotator","version":"3.1.0","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","eggPlugin","egg-plugin","logger","logrotator"],"dependencies":{"debug":"^4.1.1","moment":"^2.24.0","mz":"^2.7.0"},"devDependencies":{"autod":"^3.1.0","egg":"^2.0.0","egg-bin":"^4.13.0","egg-ci":"^1.11.0","egg-logger":"^2.4.1","egg-mock":"^3.22.2","eslint":"^5.16.0","eslint-config-egg":"^7.3.1","glob":"^7.1.3","mz-modules":"^2.1.0","pedding":"1"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"type":"travis","os":{"travis":"linux, osx, windows"},"nyc":true,"version":"8, 10","license":{"year":2016}},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"105616a372f563ae77a50ecb62b73c61d4c17fd5","_id":"egg-logrotator@3.1.0","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","dist":{"shasum":"640b8ad51a1c596de3ae8258aea1601c344b47c5","size":8426,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-3.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmUser":{"name":"atian25","email":"atian25@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator_3.1.0_1556175071117_0.461702892042539"},"_hasShrinkwrap":false,"publish_time":1556175071252,"_cnpm_publish_time":1556175071252},"3.0.7":{"name":"egg-logrotator","version":"3.0.7","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","eggPlugin","egg-plugin","logger","logrotator"],"dependencies":{"debug":"^4.1.0","moment":"^2.22.2","mz":"^2.7.0"},"devDependencies":{"autod":"^3.0.1","egg":"^2.0.0","egg-bin":"^4.9.0","egg-ci":"^1.10.0","egg-logger":"^2.3.2","egg-mock":"^3.20.1","eslint":"^5.7.0","eslint-config-egg":"^7.1.0","glob":"^7.1.3","mz-modules":"^2.1.0","pedding":"1"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"type":"travis","os":{"travis":"linux, osx, windows"},"nyc":true,"version":"8, 10","license":{"year":2016}},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"50db40e6c9a727935485acb608a5f3ee71996e6d","_id":"egg-logrotator@3.0.7","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","dist":{"shasum":"36e2302fe4ab939d3f10a3ae8e8f98411c2adc7a","size":8227,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-3.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-3.0.7.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmUser":{"name":"atian25","email":"atian25@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator_3.0.7_1552493079449_0.954667490434856"},"_hasShrinkwrap":false,"publish_time":1552493079584,"_cnpm_publish_time":1552493079584},"3.0.6":{"name":"egg-logrotator","version":"3.0.6","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","eggPlugin","egg-plugin","logger","logrotator"],"dependencies":{"debug":"^4.1.0","moment":"^2.22.2","mz":"^2.7.0"},"devDependencies":{"autod":"^3.0.1","egg":"^2.0.0","egg-bin":"^4.9.0","egg-ci":"^1.10.0","egg-logger":"^2.3.2","egg-mock":"^3.20.1","eslint":"^5.7.0","eslint-config-egg":"^7.1.0","glob":"^7.1.3","mz-modules":"^2.1.0","pedding":"1"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"type":"travis","os":{"travis":"linux, osx, windows"},"nyc":true,"version":"8, 10","license":{"year":2016}},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"efd3c0bd6009a82b383fb457e1213c92212c5626","_id":"egg-logrotator@3.0.6","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"4dad4cebeb1cb9512e4ef23dbab25d822f96284a","size":8076,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-3.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-3.0.6.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator_3.0.6_1551887321349_0.46402520360431776"},"_hasShrinkwrap":false,"publish_time":1551887321467,"_cnpm_publish_time":1551887321467},"2.3.3":{"name":"egg-logrotator","version":"2.3.3","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"debug":"^3.1.0","moment":"^2.19.0","mz":"^2.7.0"},"devDependencies":{"autod":"^2.9.0","egg":"^1.9.0","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.0","eslint":"^4.8.0","eslint-config-egg":"^5.1.1","glob":"^7.1.2","pedding":"1","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"version":"6, 7"},"publishConfig":{"tag":"latest-2"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","readmeFilename":"README.md","gitHead":"f23d5c4193f397668e552d461ae2d656aac35164","_id":"egg-logrotator@2.3.3","_npmVersion":"6.4.1","_nodeVersion":"10.14.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"881402bf08889610f87662c27f5ed29e66d58977","size":7496,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-2.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-2.3.3.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator_2.3.3_1543980558228_0.9688213418677365"},"_hasShrinkwrap":false,"publish_time":1543980558367,"_cnpm_publish_time":1543980558367},"3.0.5":{"name":"egg-logrotator","version":"3.0.5","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","eggPlugin","egg-plugin","logger","logrotator"],"dependencies":{"debug":"^4.1.0","moment":"^2.22.2","mz":"^2.7.0"},"devDependencies":{"autod":"^3.0.1","egg":"^2.0.0","egg-bin":"^4.9.0","egg-ci":"^1.10.0","egg-mock":"^3.20.1","eslint":"^5.7.0","eslint-config-egg":"^7.1.0","glob":"^7.1.3","mz-modules":"^2.1.0","pedding":"1"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"type":"travis","os":{"travis":"linux, osx, windows"},"nyc":true,"version":"8, 10","license":{"year":2016}},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"8b5a2f30afaa0df84052070374a831d3d6c34ed0","_id":"egg-logrotator@3.0.5","_npmVersion":"6.4.1","_nodeVersion":"10.14.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"8deabb7543bd3cfeb2330dbae044be4a6317f290","size":7932,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-3.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-3.0.5.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator_3.0.5_1543921376312_0.7437869208270518"},"_hasShrinkwrap":false,"publish_time":1543921376586,"_cnpm_publish_time":1543921376586},"3.0.4":{"name":"egg-logrotator","version":"3.0.4","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","eggPlugin","egg-plugin","logger","logrotator"],"dependencies":{"debug":"^4.1.0","moment":"^2.22.2","mz":"^2.7.0"},"devDependencies":{"autod":"^3.0.1","egg":"^2.0.0","egg-bin":"^4.9.0","egg-ci":"^1.10.0","egg-mock":"^3.20.1","eslint":"^5.7.0","eslint-config-egg":"^7.1.0","glob":"^7.1.3","mz-modules":"^2.1.0","pedding":"1"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"type":"travis","os":{"travis":"linux, osx, windows"},"nyc":true,"version":"8, 10","license":{"year":2016}},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"589d4b56384a0d5ab8e95c259c379522caf4e71c","_id":"egg-logrotator@3.0.4","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"4a626f4248843cf9a27c361ca58f79dbf445225c","size":7829,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-3.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-3.0.4.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator_3.0.4_1540322104290_0.26519476019954835"},"_hasShrinkwrap":false,"publish_time":1540322104665,"_cnpm_publish_time":1540322104665},"2.3.2":{"name":"egg-logrotator","version":"2.3.2","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"debug":"^3.1.0","moment":"^2.19.0","mz":"^2.7.0"},"files":["app","config","agent.js","app.js"],"devDependencies":{"autod":"^2.9.0","egg":"^1.9.0","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.0","eslint":"^4.8.0","eslint-config-egg":"^5.1.1","glob":"^7.1.2","pedding":"1","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"version":"6, 7"},"publishConfig":{"tag":"latest-2"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","readmeFilename":"README.md","gitHead":"2dfe468918cb93ac11a74659a38307aee568721f","_id":"egg-logrotator@2.3.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"4f351faa784b857af7c252c473bdfc4676fbb768","size":7417,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-2.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-2.3.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator_2.3.2_1525870094487_0.04966220640567376"},"_hasShrinkwrap":false,"publish_time":1525870094573,"_cnpm_publish_time":1525870094573},"3.0.3":{"name":"egg-logrotator","version":"3.0.3","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","eggPlugin","egg-plugin","logger","logrotator"],"dependencies":{"debug":"^3.1.0","moment":"^2.19.3","mz":"^2.7.0"},"files":["app","config","agent.js","app.js"],"devDependencies":{"autod":"^3.0.1","egg":"^2.0.0","egg-bin":"^4.3.6","egg-ci":"^1.8.0","egg-mock":"^3.13.1","eslint":"^4.12.1","eslint-config-egg":"^5.1.1","glob":"^7.1.2","pedding":"1","supertest":"^3.0.0"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"version":"8, 9"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"35f360d9b8db321f6654e42307887b068a594dfc","_id":"egg-logrotator@3.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"232b59b110983afd7637da607d0d5c86dcee0b98","size":7624,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-3.0.3.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator_3.0.3_1522322894863_0.8127286024632125"},"_hasShrinkwrap":false,"publish_time":1522322894910,"_cnpm_publish_time":1522322894910},"3.0.2":{"name":"egg-logrotator","version":"3.0.2","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","eggPlugin","egg-plugin","logger","logrotator"],"dependencies":{"debug":"^3.1.0","moment":"^2.19.3","mz":"^2.7.0"},"files":["app","config","agent.js","app.js"],"devDependencies":{"autod":"^3.0.1","egg":"^2.0.0","egg-bin":"^4.3.6","egg-ci":"^1.8.0","egg-mock":"^3.13.1","eslint":"^4.12.1","eslint-config-egg":"^5.1.1","glob":"^7.1.2","pedding":"1","supertest":"^3.0.0"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"version":"8, 9"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"27b3a927f7d700b6eb1dfdf534f555da486fb72a","_id":"egg-logrotator@3.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"80c3ae370a58dd8004f9e7c15f81ae11f39d6bb3","size":7528,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-3.0.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator_3.0.2_1519369233799_0.3194871845020506"},"_hasShrinkwrap":false,"publish_time":1519369233851,"_cnpm_publish_time":1519369233851},"2.3.1":{"name":"egg-logrotator","version":"2.3.1","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"debug":"^3.1.0","moment":"^2.19.0","mz":"^2.7.0"},"files":["app","config","agent.js","app.js"],"devDependencies":{"autod":"^2.9.0","egg":"^1.9.0","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.0","eslint":"^4.8.0","eslint-config-egg":"^5.1.1","glob":"^7.1.2","pedding":"1","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"version":"6, 7"},"publishConfig":{"tag":"release-2.x"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"750c6bf6800252a12a75227ab3a961d134c15e7e","_id":"egg-logrotator@2.3.1","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"58d20c81f2c2a0ff34be4c25fd0c235150f4c449","size":7307,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-2.3.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator-2.3.1.tgz_1512964313000_0.030618614051491022"},"directories":{},"publish_time":1512964313116,"_hasShrinkwrap":false,"_cnpm_publish_time":1512964313116},"3.0.1":{"name":"egg-logrotator","version":"3.0.1","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","eggPlugin","egg-plugin","logger","logrotator"],"dependencies":{"debug":"^3.1.0","moment":"^2.19.3","mz":"^2.7.0"},"files":["app","config","agent.js","app.js"],"devDependencies":{"autod":"^3.0.1","egg":"^2.0.0","egg-bin":"^4.3.6","egg-ci":"^1.8.0","egg-mock":"^3.13.1","eslint":"^4.12.1","eslint-config-egg":"^5.1.1","glob":"^7.1.2","pedding":"1","supertest":"^3.0.0"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"version":"8, 9"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"d306e0b7f8fa29cc71d3e7b55f91d391962229b1","_id":"egg-logrotator@3.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"60eba21204c69bbcf463e236e6bc6559356e11cf","size":7438,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-3.0.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator-3.0.1.tgz_1512962852470_0.5288349960464984"},"directories":{},"publish_time":1512962852529,"_hasShrinkwrap":false,"_cnpm_publish_time":1512962852529},"3.0.0":{"name":"egg-logrotator","version":"3.0.0","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"debug":"^3.1.0","moment":"^2.19.1","mz":"^2.7.0"},"files":["app","config","agent.js","app.js"],"devDependencies":{"autod":"^2.10.1","egg":"next","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.1","eslint":"^4.10.0","eslint-config-egg":"^5.1.1","glob":"^7.1.2","pedding":"1","supertest":"^3.0.0"},"engines":{"node":">=8.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"version":"8, 9"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"4e4ee970d6f4c7001ddc05dd0cafc517c1a12371","_id":"egg-logrotator@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"385f8efae1a40d5843dfe4148413dba182e6d325","size":6450,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-3.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator-3.0.0.tgz_1510309355211_0.32711490080691874"},"directories":{},"publish_time":1510309355342,"_hasShrinkwrap":false,"_cnpm_publish_time":1510309355342},"2.3.0":{"name":"egg-logrotator","version":"2.3.0","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"debug":"^3.1.0","moment":"^2.19.0","mz":"^2.7.0"},"files":["app","config","agent.js","app.js"],"devDependencies":{"autod":"^2.9.0","egg":"^1.9.0","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.0","eslint":"^4.8.0","eslint-config-egg":"^5.1.1","glob":"^7.1.2","pedding":"1","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"lint":"eslint .","pkgfiles":"egg-bin pkgfiles","test":"npm run lint -- --fix && npm run pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run pkgfiles -- --check && npm run cov","autod":"autod"},"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"333a3e02a7e3d23980d508e79fe4c66f859b484c","_id":"egg-logrotator@2.3.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"13933481073bef82029ed5bff090d77e7e5885d5","size":7176,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-2.3.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator-2.3.0.tgz_1509623593983_0.00957995280623436"},"directories":{},"publish_time":1509623594905,"_cnpm_publish_time":1509623594905,"_hasShrinkwrap":false},"2.2.3":{"name":"egg-logrotator","version":"2.2.3","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"debug":"^2.6.0","moment":"^2.17.1","mz":"^2.6.0"},"files":["agent.js","app","config","app.js"],"devDependencies":{"autod":"^2.7.1","egg":"^0.9.0","egg-bin":"^2.0.2","egg-ci":"^1.1.0","egg-mock":"^2.3.1","eslint":"^3.14.1","eslint-config-egg":"^3.2.0","glob":"^7.1.1","pedding":"1","supertest":"^3.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"lint":"eslint .","test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"ci":{"version":"6, 7"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"679a465bbcf5fdda050b2ab4023627e0ae04d370","_id":"egg-logrotator@2.2.3","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"0070f36a0a97e9550a6b28e7185bb56f08a00224","size":6051,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-2.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-2.2.3.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-logrotator-2.2.3.tgz_1496588232736_0.699858311098069"},"directories":{},"publish_time":1496588232919,"_cnpm_publish_time":1496588232919,"_hasShrinkwrap":false},"2.2.2":{"name":"egg-logrotator","version":"2.2.2","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"moment":"^2.14.1","mz":"^2.4.0"},"files":["agent.js","app","config","app.js"],"devDependencies":{"autod":"^2.7.0","egg":"test","egg-bin":"^1.2.0","egg-ci":"^1.0.3","egg-mock":"^0.0.4","eslint":"^3.3.1","eslint-config-egg":"^3.1.0","glob":"^7.0.5","intelli-espower-loader":"^1.0.1","pedding":"1","power-assert":"^1.4.1","supertest":"^2.0.0"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test -r intelli-espower-loader","cov":"egg-bin cov -r intelli-espower-loader","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-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"f1b3932268631f451f002889081cf347dc6f4b1d","_id":"egg-logrotator@2.2.2","_shasum":"699ff7c0f3957c5d46713ee74179d3073f51bc07","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"699ff7c0f3957c5d46713ee74179d3073f51bc07","size":5974,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-2.2.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/egg-logrotator-2.2.2.tgz_1477582260811_0.26851468184031546"},"directories":{},"publish_time":1477582263186,"_cnpm_publish_time":1477582263186,"_hasShrinkwrap":false},"2.2.1":{"name":"egg-logrotator","version":"2.2.1","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"moment":"^2.14.1","mz":"^2.4.0"},"files":["agent.js","app","config","app.js"],"devDependencies":{"autod":"^2.7.0","egg":"test","egg-bin":"^1.2.0","egg-ci":"^1.0.3","egg-mock":"^0.0.4","eslint":"^3.3.1","eslint-config-egg":"^3.1.0","glob":"^7.0.5","intelli-espower-loader":"^1.0.1","pedding":"1","power-assert":"^1.4.1","supertest":"^2.0.0"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test -r intelli-espower-loader","cov":"egg-bin cov -r intelli-espower-loader","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-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"cd2998ab81a22af4e5af47efd1cbbf6720f42ca8","_id":"egg-logrotator@2.2.1","_shasum":"fa7c4bd51be0332664f8ff2bd78a37e09b0390ee","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"fa7c4bd51be0332664f8ff2bd78a37e09b0390ee","size":5828,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-2.2.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-logrotator-2.2.1.tgz_1477564056874_0.9727854740340263"},"directories":{},"publish_time":1477564058828,"_cnpm_publish_time":1477564058828,"_hasShrinkwrap":false},"2.2.0":{"name":"egg-logrotator","version":"2.2.0","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"moment":"^2.14.1","mz":"^2.4.0"},"files":["agent.js","app","config","app.js"],"devDependencies":{"autod":"^2.7.0","egg":"test","egg-bin":"^1.2.0","egg-ci":"^1.0.3","egg-mock":"^0.0.4","eslint":"^3.3.1","eslint-config-egg":"^3.1.0","glob":"^7.0.5","intelli-espower-loader":"^1.0.1","pedding":"1","power-assert":"^1.4.1","supertest":"^2.0.0"},"engines":{"node":">=4.0.0"},"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test -r intelli-espower-loader","cov":"egg-bin cov -r intelli-espower-loader","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-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"9860ce558f58e19f050a053a5d0564d9a1bdb254","_id":"egg-logrotator@2.2.0","_shasum":"d5307f40c1ac6e7fe14ced7290ae8830dad4f1f9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"d5307f40c1ac6e7fe14ced7290ae8830dad4f1f9","size":5754,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-2.2.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/egg-logrotator-2.2.0.tgz_1475163989729_0.8849422037601471"},"directories":{},"publish_time":1475163990629,"_cnpm_publish_time":1475163990629,"_hasShrinkwrap":false},"2.1.0":{"name":"egg-logrotator","version":"2.1.0","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"moment":"^2.14.1","mz":"^2.4.0"},"files":["agent.js","app","config","app.js"],"devDependencies":{"autod":"^2.7.0","egg":"test","egg-bin":"^1.2.0","egg-ci":"^1.0.3","egg-mock":"^0.0.4","eslint":"^3.3.1","eslint-config-egg":"^3.1.0","glob":"^7.0.5","pedding":"1","should":"^11.1.0","supertest":"^2.0.0"},"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-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"371c27f4793c11365ec2bd442243ad7210212e36","_id":"egg-logrotator@2.1.0","_shasum":"af1dcba96d123ab5415f54739be70d52c54b7ceb","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"af1dcba96d123ab5415f54739be70d52c54b7ceb","size":4336,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-2.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-logrotator-2.1.0.tgz_1472470130971_0.4200545565690845"},"directories":{},"publish_time":1472470132617,"_cnpm_publish_time":1472470132617,"_hasShrinkwrap":false},"2.0.0":{"name":"egg-logrotator","version":"2.0.0","description":"logrotator for egg","eggPlugin":{"name":"logrotator","dep":["schedule"]},"keywords":["egg","plugin"],"dependencies":{"moment":"^2.14.1","mz":"^2.4.0"},"files":["agent.js","app","config","app.js"],"devDependencies":{"autod":"^2.7.0","egg":"test","egg-bin":"^1.2.0","egg-ci":"^1.0.3","egg-mock":"^0.0.4","eslint":"^3.3.1","eslint-config-egg":"^3.1.0","glob":"^7.0.5","pedding":"1","should":"^11.1.0","supertest":"^2.0.0"},"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-logrotator.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-logrotator#readme","author":{"name":"tianyi.jiangty"},"license":"MIT","gitHead":"b1eaf189c5098c3c75991cdb6095b15d3ab7c106","_id":"egg-logrotator@2.0.0","_shasum":"462b0cb8187e7b2c0cf49d3a6933f6ad7535ca01","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"462b0cb8187e7b2c0cf49d3a6933f6ad7535ca01","size":4145,"noattachment":false,"key":"/egg-logrotator/-/egg-logrotator-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-logrotator/download/egg-logrotator-2.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jtyjty99999","email":"jtyjty99999@126.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-logrotator-2.0.0.tgz_1471407935624_0.8490417613647878"},"directories":{},"publish_time":1471407937402,"_cnpm_publish_time":1471407937402,"_hasShrinkwrap":false}},"readme":"# egg-logrotator\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-logrotator.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-logrotator\n[travis-image]: https://img.shields.io/travis/eggjs/egg-logrotator.svg?style=flat-square\n[travis-url]: https://travis-ci.org/eggjs/egg-logrotator\n[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-logrotator.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/eggjs/egg-logrotator?branch=master\n[david-image]: https://img.shields.io/david/eggjs/egg-logrotator.svg?style=flat-square\n[david-url]: https://david-dm.org/eggjs/egg-logrotator\n[snyk-image]: https://snyk.io/test/npm/egg-logrotator/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-logrotator\n[download-image]: https://img.shields.io/npm/dm/egg-logrotator.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-logrotator\n\nLogRotator for egg. Rotate all file of `app.loggers` by default\n\n## Install\n\n```bash\n$ npm i egg-logrotator\n```\n\n## Usage\n\n- `plugin.js`\n\n```js\nexports.logrotator = {\n  enable: true,\n  package: 'egg-logrotator',\n};\n```\n\n- `config.default.js`\n\n```js\n// if any files need rotate by file size, config here\nexports.logrotator = {\n  filesRotateByHour: [],           // list of files that will be rotated by hour\n  hourDelimiter: '-',              // rotate the file by hour use specified delimiter\n  filesRotateBySize: [],           // list of files that will be rotated by size\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## Feature\n\nBy default, LogRotator will rotate all files of `app.loggers` at 00:00 everyday, the format is `.log.YYYY-MM-DD` (`egg-web.log.2016-09-30`).\n\n### By Size\n\nRotate by size with config `filesRotateBySize`. when the file size is greater than `maxFileSize`, it will rename to `.log.1`.\n\nIf the file you renamed to is exists, it will increment by 1 (`.log.1` -> `.log.2`), until `maxFiles`. if it reaches the `maxFiles`, then overwrite `.log.${maxFiles}`.\n\nFiles in `filesRotateBySize` won't be rotated by day.\n\nIf `file` is relative path, then will normalize to `path.join(this.app.config.logger.dir, file)`.\n\n### By Hour\n\nRotate by hour with config `filesRotateByHour`. rotate the file at 00 every hour, the format is `.log.YYYY-MM-DD-HH`.\n\nFiles in `filesRotateByHour` won't be rotated by day.\n\nIf `file` is relative path, then will normalize to `path.join(this.app.config.logger.dir, file)`.\n\n## Customize\n\nYou can use `app.LogRotator` to customize.\n\n```js\n// app/schedule/custom.js\nmodule.exports = app => {\n  const rotator = getRotator(app);\n  return {\n    // https://github.com/eggjs/egg-schedule\n    schedule: {\n      type: 'worker', // only one worker run this task\n      cron: '10 * * * *', // custom cron, or use interval\n    },\n    async task() {\n      await rotator.rotate();\n    }\n  };\n};\n\nfunction getRotator(app) {\n  class CustomRotator extends app.LogRotator {\n    // return map that contains a pair of srcPath and targetPath\n    // LogRotator will rename ksrcPath to targetPath\n    async getRotateFiles() {\n      const files = new Map();\n      const srcPath = '/home/admin/foo.log';\n      const targetPath = '/home/admin/foo.log.2016.09.30';\n      files.set(srcPath, { srcPath, targetPath });\n      return files;\n    }\n  }\n  return new CustomRotator({ app });\n}\n```\n\nDefine a method called `getRotateFiles`, return a map contains a pair of srcPath and targetPath.\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## License\n\n[MIT](https://github.com/eggjs/egg-logrotator/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/eggjs/egg-logrotator#readme","bugs":{"url":"https://github.com/eggjs/egg/issues"},"license":"MIT"}