pino
noun
say it: “PEE-noh” /ˈpinoʊ/
A fast logging package for Node that writes each message as a line of JSON.
What is pino?
pino is a fast logger for Node that writes each log as one line of JSON with a level, a time and any fields you add. Its companion package, pino-http, logs a line for every request.
import pino from "pino";
const logger = pino();
logger.info({ orderId: 1042, total: 18.5 }, "order placed");
// {"level":30,"time":1763380800000,"orderId":1042,"total":18.5,"msg":"order placed"}
In a sentence
- “The shuttle API logs every request with pino, so the team can search the logs by route.”
- “pino writes level 30 for info and 50 for error.”
Level: Journeyman · More Node.js terms at this level
Updated