Skip to content

Commit

Permalink
fix: log rotation (#2476)
Browse files Browse the repository at this point in the history
* fix: log rotation

* fix: give audit file full path
  • Loading branch information
robertsLando committed Jun 21, 2022
1 parent 1e14238 commit a24f1b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/logger.ts
Expand Up @@ -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',
Expand Down

0 comments on commit a24f1b5

Please sign in to comment.