Skip to content

Commit

Permalink
fix: Rotate log files every day
Browse files Browse the repository at this point in the history
  Rotating them every minute was only useful during development.
  • Loading branch information
taratatach committed Oct 13, 2024
1 parent 372f6a4 commit 67c319c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/utils/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const defaultTransport = new DailyRotateFile({
level: 'info',
dirname: LOG_DIR,
filename: LOG_BASENAME,
datePattern: 'YYYY-MM-DD-HH-mm', // XXX: rotate every day
datePattern: 'YYYY-MM-DD', // XXX: rotate every day
maxFiles: 7,
zippedArchive: true, // XXX: gzip archived log files
format: combine(defaultFormatter, json())
Expand Down

0 comments on commit 67c319c

Please sign in to comment.