diff --git a/lib/logger.ts b/lib/logger.ts index def2ef819f..776de17317 100644 --- a/lib/logger.ts +++ b/lib/logger.ts @@ -112,6 +112,7 @@ export function customTransports(config: LoggerConfig): winston.transport[] { } else { fileTransport = new DailyRotateFile({ filename: config.filePath, + auditFile: joinPath(storeDir, 'z2m-logs.audit.json'), datePattern: 'YYYY-MM-DD', zippedArchive: true, maxFiles: process.env.Z2M_LOG_MAXFILES || '7d',