Skip to content

Commit

Permalink
Improve documentation for use with Google Cloud Logging
Browse files Browse the repository at this point in the history
Based on the documentation `messageKey` can only be configured in the main config and is not a valid configuration option for a formater.

See formaters documentation: https://getpino.io/#/docs/api?id=formatters-object
  • Loading branch information
jansauer authored and jsumners committed Mar 6, 2024
1 parent c109804 commit e119259
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ const PinoLevelToSeverityLookup = {
const defaultPinoConf = {
messageKey: 'message',
formatters: {
messageKey: 'message',
level(label, number) {
return {
severity: PinoLevelToSeverityLookup[label] || PinoLevelToSeverityLookup['info'],
Expand Down

0 comments on commit e119259

Please sign in to comment.