@crccheck/pino-prettypy
v0.1.0
Published
A wrapper around pino-pretty
Downloads
4
Readme
pino-prettypy
A wrapper around pino-pretty that adds Python logging level transformation.
⚠️ Note: This is a toy project and is not actively maintained. It was vibe coded with an LLM.
What it does
This tool transforms Python logging levels to Pino levels, allowing you to prettify Python logs that use levelname with pino-pretty.
Python → Pino level mapping:
DEBUG→ 20INFO→ 30WARNING→ 40ERROR→ 50CRITICAL→ 60
Installation
npm install -g @crccheck/pino-prettypyOr use with npx:
npx @crccheck/pino-prettypyUsage
Pipe your Python JSON logs through pino-prettypy:
cat your-python-logs.jsonl | pino-prettypyAll pino-pretty options are supported:
cat your-python-logs.jsonl | pino-prettypy -t -cHow it works
- Transforms
"levelname":"INFO"→"level":30 - Pipes the transformed JSON through pino-pretty
- Outputs beautifully formatted logs
License
ISC
This project includes code from pino-pretty, which is licensed under the MIT License.
Author
Chris Chang [email protected]
