Skip to content

feat(logging): improve spacing and colors#1329

Merged
leshy merged 1 commit intodevfrom
paul/feat/improve-console-logs
Feb 21, 2026
Merged

feat(logging): improve spacing and colors#1329
leshy merged 1 commit intodevfrom
paul/feat/improve-console-logs

Conversation

@paul-nechifor
Copy link
Contributor

Problem

The gaps in the logs can be a bit annoying. Before:

2026-02-21_04-33

Solution

  • Make the file length fixed size (trim from the left).
  • Give the fixed fields a black background so they stand out.
  • Make the regular text blue so it stands out compared to prints which should only be used for debugging and not be left in the code

Now:

2026-02-21_04-31

Breaking Changes

None

How to Test

Run

uv run dimos run unitree-go2

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 21, 2026

Greptile Summary

Replaces structlog's ConsoleRenderer with a custom _compact_console_processor that formats logs with fixed-width fields, improved color coding, and better visual separation. The new formatter:

  • Fixed-width file path (30 chars, left-truncated) for aligned columns
  • Black backgrounds on fixed fields (timestamp, level, file) to improve readability
  • Blue text for event messages to distinguish from debug prints
  • Color-coded log levels and key-value pairs
  • Fallback to non-colored output when not in a TTY

No functional changes to logging behavior, only presentation improvements.

Confidence Score: 5/5

  • Safe to merge - cosmetic logging improvements with no functional changes
  • The changes are well-contained and purely cosmetic. The new custom processor maintains the same functionality as the old ConsoleRenderer while improving visual presentation. Color codes are standard ANSI escape sequences, TTY detection is proper, and the non-colored fallback ensures compatibility.
  • No files require special attention

Important Files Changed

Filename Overview
dimos/utils/logging_config.py Replaced console renderer with custom formatter for better log spacing and colors; clean refactor

Last reviewed commit: ca58c07

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@leshy leshy merged commit 96eae99 into dev Feb 21, 2026
29 of 31 checks passed
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