Keep latest log in log.txt (not in log1.txt, etc.). https://github.com/Koenkk/zigbee2mqtt/issues/2855

This commit is contained in:
Koen Kanters
2020-01-31 23:13:15 +01:00
parent 4926fb85ae
commit 313edcc445
+1
View File
@@ -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(