Skip to content

Commit

Permalink
Added timestamps to Winston logger
Browse files Browse the repository at this point in the history
  • Loading branch information
erin-fitzpatric committed Mar 31, 2022
1 parent 759f17c commit b8676b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/utils/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ const { userFolder } = require('./configuration');

const logger = winston.createLogger({
level: 'info',
format: winston.format.json(),
format: winston.format.combine(
winston.format.timestamp(),
winston.format.json(),
),
transports: [
//
// - Write all logs with level `error` and below to `error.log`
Expand Down

0 comments on commit b8676b1

Please sign in to comment.