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