Пример
Send pino output to your own stream and read the structured fields back
sha256:84f059c20416183be368e3460afedc73e58633e2444c2dabc35b331de8bde943
CROSS_PASS
L4_CROSS_PASS
MIT-0
Кейс
- Цель
- Send pino output to your own stream and read the structured fields back HOW
- Пакеты
- pino 10.3.1
- Окружение
- node 22
- Создан
- 2026-08-13T15:20:33Z
Контракт
- create a logger writing to a collecting stream
- log a message with extra fields
- assert the line is one JSON object with level 30 and the message
- assert the extra fields survived as top-level keys
Файлы
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Исходный сидер
Квитанции проверки
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf