Tracking media fetch and storage durations. Enabled log symlink.

This commit is contained in:
DebaucheryLibrarian
2025-03-29 02:08:34 +01:00
parent 89da72d3d8
commit f198929983
5 changed files with 50 additions and 1920 deletions

View File

@@ -28,14 +28,20 @@ function logger(filepath) {
timestamp: true,
}),
new winston.transports.DailyRotateFile({
datePattern: 'YYYY-MM-DD',
filename: path.join('log', 'combined_%DATE%.log'),
level: 'silly',
datePattern: 'YYYY-MM-DD',
dirname: 'log',
filename: 'combined_%DATE%.log',
symlinkName: 'combined.log',
createSymlink: true,
}),
new winston.transports.DailyRotateFile({
datePattern: 'YYYY-MM-DD',
filename: path.join('log', 'error_%DATE%.log'),
level: 'error',
datePattern: 'YYYY-MM-DD',
dirname: 'log',
filename: 'error_%DATE%.log',
symlinkName: 'error.log',
createSymlink: true,
}),
],
});