-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
internalFor changes that affect the project's internal workings but not its outward-facing functionality.For changes that affect the project's internal workings but not its outward-facing functionality.
Milestone
Description
Problem
Currently, the JSON-RPC relay always uses pino-pretty for log formatting, which outputs human-readable, colorized logs. While this is excellent for local development and debugging, it creates challenges in production environments:
- Log aggregation systems (Elasticsearch, Splunk, Datadog, etc.) work best with structured JSON logs
- Automated log parsing is difficult with pretty-formatted output
- Container orchestration platforms (Kubernetes, Docker Swarm) typically expect JSON-formatted logs
- Performance overhead -
pino-prettyadds processing time that isn't necessary in production
The relay currently has no way to disable pretty logging in favor of native JSON output.
Proposed Solution
Add a new environment variable PRETTY_LOGS_ENABLED that allows operators to toggle between pretty-printed and JSON-formatted logging.
Metadata
Metadata
Assignees
Labels
internalFor changes that affect the project's internal workings but not its outward-facing functionality.For changes that affect the project's internal workings but not its outward-facing functionality.