just use daily logs instead of hourly

This commit is contained in:
Ondrej Synacek 2019-11-05 20:05:24 +01:00
parent 563853c5a3
commit 05640e2cd8
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ const getNormalizedUrl = (URLparameter) => {
const createDailyRotateLogFileTransport = () => {
const transport = new (winston.transports.DailyRotateFile)({
filename: path.join(__dirname, '..', 'logs', 'app-%DATE%.log'),
datePattern: 'YYYY-MM-DD-HH',
datePattern: 'YYYY-MM-DD',
zippedArchive: false,
maxSize: '20m',
maxFiles: '14d',