Skip to content

Commit

Permalink
change messageKey on logger
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPSplunk committed Jun 7, 2024
1 parent 37a035b commit bf76a5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/paymentservice/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ const levelMapping = {

module.exports = pino({
level: 'info',
messageKey: 'message',
formatters: {
level(label, number) {
return { severity: levelMapping[number] || number };
},
log(object) {
return { ...object };

}
},
timestamp: pino.stdTimeFunctions.isoTime,
Expand Down

0 comments on commit bf76a5d

Please sign in to comment.