Add a --format-logs flag to skybridge dev for structured log formatting #834
Closed
pldesch-chift
started this conversation in
Ideas
Replies: 1 comment
|
Moved to issue #835 to follow the repo convention of tracking features with issues. Closing this discussion. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
When using structured JSON loggers like bunyan or pino, the raw JSON output appears in the Skybridge dev UI as unreadable single-line records like:
The standard way to make this readable is to pipe through the formatter CLI (
| bunyan), but this is not possible with Skybridge because the Ink UI captures stdout internally via nodemon. Piping the wholeskybridge devprocess swallows the Ink UI (banner, tunnel info, TS errors).Proposed solution
Add a
--format-logs <command>flag toskybridge devthat:Benefits:
Implementation
I have a working implementation in #830 — happy to discuss the approach here first and rework the PR based on feedback.
This is what motivated the change: I’m using bunyan for structured logging in a Chift MCP server and wanted readable output in the dev CLI without losing the Skybridge UI features.
All reactions