From 313edcc44576d85cc0099ad42259580629a33a5b Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Fri, 31 Jan 2020 23:13:15 +0100 Subject: [PATCH] Keep latest log in log.txt (not in log1.txt, etc.). https://github.com/Koenkk/zigbee2mqtt/issues/2855 --- lib/util/logger.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util/logger.js b/lib/util/logger.js index aa9605969..a6cb3f759 100644 --- a/lib/util/logger.js +++ b/lib/util/logger.js @@ -58,6 +58,7 @@ if (output.includes('file')) { filename: path.join(directory, 'log.txt'), json: false, level, + tailable: true, maxFiles: 3, // Keep last 3 files maxsize: 10000000, // 10MB format: winston.format.combine(