Skip to content

Tag log messages with originating stream#903

Open
LasmarKhalifa wants to merge 1 commit into
mainfrom
05-28/log-message-prototype
Open

Tag log messages with originating stream#903
LasmarKhalifa wants to merge 1 commit into
mainfrom
05-28/log-message-prototype

Conversation

@LasmarKhalifa
Copy link
Copy Markdown
Contributor

@LasmarKhalifa LasmarKhalifa commented May 28, 2026

closes #909

Refactors the log messages with a type attribute so that LogFormatter#colourize becomes more robust and tests assess the colourize method properly.

Adds .to_s to CustomLogging because we previously only had strings as messages, but we now have either a string or a Roast::Log::Message, so we need to normalize using .to_s so that we output only the text of the message rather than the entire object.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment thread lib/roast/event_monitor.rb Outdated
@LasmarKhalifa LasmarKhalifa force-pushed the 05-28/log-message-prototype branch 2 times, most recently from 13e8de8 to 94f6242 Compare June 1, 2026 19:14
@LasmarKhalifa LasmarKhalifa marked this pull request as ready for review June 1, 2026 19:41
Comment thread lib/roast/log.rb Outdated
@LasmarKhalifa LasmarKhalifa force-pushed the 05-28/log-message-prototype branch from 94f6242 to ceb0bf3 Compare June 2, 2026 17:23
@LasmarKhalifa LasmarKhalifa force-pushed the 05-28/log-message-prototype branch from ceb0bf3 to f8c1a2a Compare June 2, 2026 17:36
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.

Refactor LogFormatter#colourize to be more robust

3 participants