|
|
@ -3,14 +3,14 @@ require('winston-daily-rotate-file'); |
|
|
|
|
|
|
|
let errorTransport = new (winston.transports.DailyRotateFile)({ |
|
|
|
level: 'error', |
|
|
|
filename: 'error-%DATE%.log', |
|
|
|
filename: 'log/error-%DATE%.log', |
|
|
|
datePattern: 'YYYY-MM-DD', |
|
|
|
zippedArchive: true, |
|
|
|
maxFiles: '7d' |
|
|
|
}); |
|
|
|
|
|
|
|
let combinedTransport = new (winston.transports.DailyRotateFile)({ |
|
|
|
filename: 'combined-%DATE%.log', |
|
|
|
filename: 'log/combined-%DATE%.log', |
|
|
|
datePattern: 'YYYY-MM-DD', |
|
|
|
zippedArchive: true, |
|
|
|
maxFiles: '7d' |
|
|
|