Separated error log. Added search/summary update tool.

This commit is contained in:
DebaucheryLibrarian
2023-08-13 21:57:32 +02:00
parent d5806c3d31
commit c860bfebc1
4 changed files with 64 additions and 14 deletions

View File

@@ -29,9 +29,14 @@ function logger(filepath) {
}),
new winston.transports.DailyRotateFile({
datePattern: 'YYYY-MM-DD',
filename: path.join('log', '%DATE%.log'),
filename: path.join('log', 'combined_%DATE%.log'),
level: 'silly',
}),
new winston.transports.DailyRotateFile({
datePattern: 'YYYY-MM-DD',
filename: path.join('log', 'error_%DATE%.log'),
level: 'error',
}),
],
});
}