Skip to content

Commit

Permalink
feat(logger): default console transport print single-line output
Browse files Browse the repository at this point in the history
  • Loading branch information
yidinghan committed Apr 25, 2017
1 parent 425a935 commit f3715ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ exports.getLogLevel = (statusCode = 200, defaultLevel = 'info') => {

exports.logger = (payload = {}) => {
const {
transports = [new winston.transports.Console({ json: true })],
transports = [new winston.transports.Console({ json: true, stringify: true })],
level = 'info',
msg = 'HTTP %s %s',
} = payload;
Expand Down

0 comments on commit f3715ed

Please sign in to comment.