Separated error log. Added search/summary update tool.
This commit is contained in:
@@ -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',
|
||||
}),
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user