Skip to content

feat: add log-oriented console writer - #169

Open
Solaris-star wants to merge 1 commit into
vbauerster:masterfrom
Solaris-star:fix-157-log-output
Open

Solaris-star wants to merge 1 commit into
vbauerster:masterfrom
Solaris-star:fix-157-log-output

Conversation

@Solaris-star

Copy link
Copy Markdown
Contributor

Problem

Progress bars rendered in Kubernetes, Argo, Docker, and other log-oriented environments currently include terminal cursor-control behavior, which makes captured logs incomplete or difficult to read.

Solution

Add NewLogWriter, a ConsoleWriter implementation that buffers each rendered frame and appends it to the supplied io.Writer without cursor-control sequences or overwriting previous output. Callers can combine it with WithConsoleWriter and WithWidth for stable log output.

Testing

  • go test ./...
  • Added coverage for writer-based and ReaderFrom input, flushing, non-terminal detection, and prevention of duplicate output on an empty flush.

Relates to #157

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