Skip to content

logging format: introduce AlignedFormatter for aligned log output with optional ANSI colors#447

Open
sntntn wants to merge 4 commits intograndinetech:developfrom
sntntn:feature/custom-log-output
Open

logging format: introduce AlignedFormatter for aligned log output with optional ANSI colors#447
sntntn wants to merge 4 commits intograndinetech:developfrom
sntntn:feature/custom-log-output

Conversation

@sntntn
Copy link
Contributor

@sntntn sntntn commented Oct 28, 2025

Ensured consistent alignment for columns + added brackets.

Disabled ANSI
Screenshot from 2025-10-28 01-53-28

Enabled ANSI
Screenshot from 2025-10-28 01-50-59

   - crit! macro now emits error-level logs under the "crit" target
   - visibility limited to when "crit" is explicitly enabled
     via GRANDINE_LOG, RUST_LOG, or POST /eth/v2/debug/tracing/log_level
   - added tests for crit! macro visibility and behavior
   - tests various `_with_peers` formatting styles
   - uses `serial_test::serial` to prevent test conflicts

See: grandinetech#432
@sntntn sntntn force-pushed the feature/custom-log-output branch from 0f2321d to 7f72cab Compare October 28, 2025 02:21
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