egg-logrotator
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -24,4 +24,9 @@ 'use strict'; | ||
for (const key in loggers) { | ||
this._setFile(loggers[key].options.file, files); | ||
const logger = loggers[key]; | ||
this._setFile(logger.options.file, files); | ||
if (logger.options.jsonFile) { | ||
this._setFile(logger.options.jsonFile, files); | ||
} | ||
} | ||
// Should rotate agent log, because schedule is running under app worker, | ||
@@ -28,0 +33,0 @@ // agent log is the only differece between app worker and agent worker. |
2.3.2 / 2018-05-09 | ||
================== | ||
**fixes** | ||
* [[`3acae72`](http://github.com/eggjs/egg-logrotator/commit/3acae720194ea136a72530be23200804fd4a9319)] - fix: support json files (#17) (Hongcai Deng <<admin@dhchouse.com>>) | ||
2.3.1 / 2017-12-11 | ||
@@ -3,0 +9,0 @@ ================== |
{ | ||
"name": "egg-logrotator", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "logrotator for egg", | ||
@@ -54,3 +54,3 @@ "eggPlugin": { | ||
"publishConfig": { | ||
"tag": "release-2.x" | ||
"tag": "latest-2" | ||
}, | ||
@@ -57,0 +57,0 @@ "repository": { |
24235
363