Skip to content

Commit

Permalink
Update logger.js : edit Directory logger
Browse files Browse the repository at this point in the history
  • Loading branch information
RobyYasirAmri authored Jun 17, 2024
1 parent b804642 commit 0c35f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middlewares/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const logger = winston.createLogger({
),
transports: [
new winston.transports.Console(),
new winston.transports.File({ filename: path.join('/var/log/dev-momee', 'error.log'), level: 'error' }),
new winston.transports.File({ filename: path.join('/var/log/dev-momee', 'combined.log') }),
new winston.transports.File({ filename: path.join('/var/log/prod-momee', 'error.log'), level: 'error' }),
new winston.transports.File({ filename: path.join('/var/log/prod-momee', 'combined.log') }),
],
});

Expand Down

0 comments on commit 0c35f03

Please sign in to comment.