Skip to content

Commit

Permalink
Update api/src/utils/logger.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPhura authored Aug 21, 2024
1 parent 839df33 commit 5b637cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const getLogger = function (logLabel: string) {
// Output logs to file
transports.push(
new DailyRotateFile({
dirname: process.env.LOG_FILE_DIR || 'data',
dirname: process.env.LOG_FILE_DIR || 'data/logs',
filename: process.env.LOG_FILE_NAME || 'sims-api-%DATE%.log',
datePattern: process.env.LOG_FILE_DATE_PATTERN || 'YYYY-MM-DD-HH',
maxSize: process.env.LOG_FILE_MAX_SIZE || '50m',
Expand Down

0 comments on commit 5b637cc

Please sign in to comment.