just use daily logs instead of hourly
This commit is contained in:
parent
563853c5a3
commit
05640e2cd8
|
@ -58,7 +58,7 @@ const getNormalizedUrl = (URLparameter) => {
|
||||||
const createDailyRotateLogFileTransport = () => {
|
const createDailyRotateLogFileTransport = () => {
|
||||||
const transport = new (winston.transports.DailyRotateFile)({
|
const transport = new (winston.transports.DailyRotateFile)({
|
||||||
filename: path.join(__dirname, '..', 'logs', 'app-%DATE%.log'),
|
filename: path.join(__dirname, '..', 'logs', 'app-%DATE%.log'),
|
||||||
datePattern: 'YYYY-MM-DD-HH',
|
datePattern: 'YYYY-MM-DD',
|
||||||
zippedArchive: false,
|
zippedArchive: false,
|
||||||
maxSize: '20m',
|
maxSize: '20m',
|
||||||
maxFiles: '14d',
|
maxFiles: '14d',
|
||||||
|
|
Loading…
Reference in New Issue