Description
I don't want the date appended to the end of the log file name, I am trying to set up logging rotation based on file size and dating the file name is counter productive if each log line is dated as well it is miss leading. I tried inputting no datePattern and setting extension to '.log' Here is the attributes I passing into DailyRotateFile
const createFileTransport = (filename) => { return new winston.transports.DailyRotateFile({ dirname: LOG_DIR, /var/log/custom filename:
${filename}, //application datePattern: null, maxFiles: MAX_FILES, // 3 maxSize: '100m', zippedArchive: true, compress: 'gzip', tailable: true, frequency: null, auditFile:
${LOG_DIR}/.${filename}-audit.json, extension: '.log', format: winston.format.combine( winston.format.timestamp(), winston.format(sensitiveDataFilter.filter)(), jsonFormatter ) }); };