Pino.js Configuration
Pino is a commonly used logger for Node.js users. Learn how to get the most out of your Pino logs.
Pino produces JSON log records by default. To get the most out of Pino, we recommend the following:
- Model log levels as labels instead of numbers. The Pino numbers do not follow any standard and cannot be generically interpreted as errors, warnings, etc. Turning the numbers into labels improves readability for humans and machines alike.
- If you don't yet have a log export mechanism in place, we recommend using Pino's OpenTelemetry transport.
Last updated: December 13, 2024