Skip to content

feat: add --json flag for machine-readable log output#199

Open
cschanhniem wants to merge 1 commit into
ekzhang:mainfrom
cschanhniem:main
Open

feat: add --json flag for machine-readable log output#199
cschanhniem wants to merge 1 commit into
ekzhang:mainfrom
cschanhniem:main

Conversation

@cschanhniem

Copy link
Copy Markdown

Adds a global --json flag that switches tracing_subscriber from the default human-readable format to structured JSON output via tracing_subscriber::fmt().json().

Designed for programmatic consumption of bore's log stream — log aggregation pipelines, monitoring stacks, structured querying.

Changes

  • Add --json global flag to both local and server subcommands
  • Conditionally initialize the JSON format subscriber
  • Enable the json feature on tracing-subscriber

Closes #169

Adds a global --json flag that switches tracing_subscriber from the
default human-readable format to structured JSON output. Useful for
programmatic consumption of bore's log stream (e.g., log aggregation,
monitoring pipelines).

Closes ekzhang#169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant