From 94ddc603e72fe5a0229b2422834df615b237368c Mon Sep 17 00:00:00 2001 From: hbomb <qiqi.zhou@yoho.cn> Date: Mon, 31 Oct 2016 17:11:31 +0800 Subject: [PATCH] error日志只保留7天 --- config/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/common.js b/config/common.js index d359926..4ffa67d 100644 --- a/config/common.js +++ b/config/common.js @@ -55,7 +55,8 @@ module.exports = { name: 'error', level: 'error', filename: 'logs/error.log', - handleExceptions: true + handleExceptions: true, + maxFiles: 7 }, udp: { // send by udp measurement: 'yohobuy_node_log', -- libgit2 0.24.0