Skip to content

Commit

Permalink
Simplify Google logging-specific configuration example (#1516)
Browse files Browse the repository at this point in the history
Reuse the `messageKey` config key instead of custom formatter
  • Loading branch information
andrew-demb committed Aug 11, 2022
1 parent f8a329c commit b599eee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/help.md
Expand Up @@ -224,14 +224,12 @@ const PinoLevelToSeverityLookup = {
const defaultPinoConf = {
messageKey: 'message',
formatters: {
messageKey: 'message',
level(label, number) {
return {
severity: PinoLevelToSeverityLookup[label] || PinoLevelToSeverityLookup['info'],
level: number,
}
},
log(message) {
return { message }
}
},
}
Expand Down

0 comments on commit b599eee

Please sign in to comment.