Skip to content

Commit

Permalink
Added to the logger the colorize and enabled silent only for test ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderArce committed Nov 15, 2018
1 parent 0572a32 commit 5ee189b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const Logger = new (winston.Logger)({
timestamp: () => {
return Date.now()
},
})
colorize: true,
silent: process.env.NODE_ENV === 'test',
}),
]
})

Expand Down

0 comments on commit 5ee189b

Please sign in to comment.