FormidableLabs / FormidableLabs/pino-lambda

Formatter is very fragile

Offen
#44 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
documentation
Vorherrschende Sprache
TypeScript
Sterne
135
Forks
14
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

https://github.com/pinojs/pino/blob/master/docs/api.md#messagekey-string

Configuring `messageKey` will cause the formatter to fail.

Additionally we configure a formatter for `level` which returns `status`, to meet Datadog's expectations https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes.

``` formatters: {
level: (label: string) => ({
status: label,
}),
},
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.