tosc-rs / mnemos

An Operating System for Building Small Computers
https://mnemos.dev
Apache License 2.0
234 stars 14 forks source link

feat(crowtty): more readable tracing messages #279

Closed hawkw closed 10 months ago

hawkw commented 10 months ago

Depends on #278.

This commit makes a very small change to how the crowtty traceproto output formats an event's message field. The message is now printed first, and (when the terminal supports ANSI formatting escapes), it's bolded, so that it stands out a bit from other fields and metadata. Also, I've changed crowtty so that the message field is always printed first, rather than ordering it alphabetically by field name. This should improve the consistency of log lines and hopefully make them a bit easier to read.

For example:

image