Tracking media fetch and storage durations. Enabled log symlink.
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user