Skip to content

Color retry/success log messages via a console color param, keeping file logs plain text - #256

Merged
pedjaradenkovic merged 1 commit into
mainfrom
feature/colored-log-messages
Jul 21, 2026
Merged

Color retry/success log messages via a console color param, keeping file logs plain text#256
pedjaradenkovic merged 1 commit into
mainfrom
feature/colored-log-messages

Conversation

@pedjaradenkovic

@pedjaradenkovic pedjaradenkovic commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Why

Resolves #247, supersedes #255.

#255 embedded Rich markup ([#FFB454]…[/#FFB454]) directly in log message strings. Plain2CodeConsole logs and prints the same string, so the markup tags landed verbatim in codeplain.log and headless output, and bracketed content in interpolated error text (e.g. [/x]) could crash Rich's markup parsing.

Colors now travel out-of-band: console methods take a color= param, the color reaches the TUI as a log_color record attribute, and the file log always receives plain text. The pre-existing inline-markup call sites were migrated to the same mechanism, and message rendering no longer interprets log text as markup anywhere.

@pedjaradenkovic
pedjaradenkovic force-pushed the feature/colored-log-messages branch from a7643d0 to df0bfa2 Compare July 20, 2026 17:13

@NejcS NejcS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@pedjaradenkovic pedjaradenkovic self-assigned this Jul 21, 2026
@pedjaradenkovic
pedjaradenkovic merged commit 58979db into main Jul 21, 2026
10 checks passed
@pedjaradenkovic
pedjaradenkovic deleted the feature/colored-log-messages branch July 21, 2026 12:28
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.

Show failures in red color in codeplain log

2 participants