Skip to content

feat: use human-readable log format for local CLI commands#2806

Open
bfirsh wants to merge 1 commit intomainfrom
use-console-log-format-locally
Open

feat: use human-readable log format for local CLI commands#2806
bfirsh wants to merge 1 commit intomainfrom
use-console-log-format-locally

Conversation

@bfirsh
Copy link
Member

@bfirsh bfirsh commented Mar 4, 2026

Coglet defaults to JSON structured logs for production (GKE/Stackdriver compatibility), but this makes local development output hard to read.

Set LOG_FORMAT=console in cog serve, cog run, cog predict, and cog train so developers see human-readable logs locally. Production is unaffected since the env var is only set by the CLI for local commands.

Before:

Screenshot 2026-03-04 at 17 00 50

After:

Screenshot 2026-03-04 at 17 01 14

Coglet defaults to JSON structured logs for production (GKE/Stackdriver
compatibility), but this makes local development output hard to read.

Set LOG_FORMAT=console in cog serve, cog run, cog predict, and cog train
so developers see human-readable logs locally. Production is unaffected
since the env var is only set by the CLI for local commands.
@bfirsh bfirsh requested a review from a team as a code owner March 4, 2026 23:02
@michaeldwan michaeldwan added this to the 0.18.0 milestone Mar 5, 2026
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.

2 participants