Skip to content

Add tracing log viewer window#238

Merged
frewsxcv merged 1 commit intomainfrom
feature/tracing-log-window
Mar 8, 2026
Merged

Add tracing log viewer window#238
frewsxcv merged 1 commit intomainfrom
feature/tracing-log-window

Conversation

@frewsxcv
Copy link
Copy Markdown
Collaborator

@frewsxcv frewsxcv commented Mar 8, 2026

Summary

  • Adds a "Logs" window accessible from Help > Logs that displays application tracing events in real-time
  • Uses a custom tracing_subscriber::Layer injected via LogPlugin::custom_layer to capture log entries into a shared ring buffer (500 entries max)
  • Entries are displayed with color-coded log levels (ERROR=red, WARN=yellow, INFO=green, DEBUG=blue, TRACE=gray) along with the target module and message
  • Follows the existing bevy_egui_window::Window trait pattern (same as Debug stats window)

Closes #96

Test plan

  • Open the app, go to Help > Logs, verify the log viewer window appears
  • Verify log entries are displayed with correct color coding
  • Verify the window can be closed and reopened
  • Load a layer and verify new log entries appear

Adds a "Logs" window accessible from Help menu that displays
application tracing events in real-time. Uses a custom
tracing-subscriber layer injected via LogPlugin::custom_layer
to capture log entries into a shared ring buffer (500 entries),
displayed with color-coded log levels in a scrollable egui window.

Closes #96
@frewsxcv frewsxcv enabled auto-merge March 8, 2026 00:17
@frewsxcv frewsxcv added this pull request to the merge queue Mar 8, 2026
Merged via the queue into main with commit 735f51b Mar 8, 2026
3 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.

Create a window that displays the tracing logs

1 participant