FormidableLabs / FormidableLabs/pino-lambda
Formatter is very fragile
Offen
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
Bewertung
Dieses Issue wurde noch nicht bewertet.