[Media] egui_tracing a drop-in live log viewer widget for egui/eframe apps

51 points grievouz_ 1 comments
[Media] egui_tracing a drop-in live log viewer widget for egui/eframe apps

I kept building little egui tools and wanting an in-app "dev console" — somewhere I could see tracing events without alt-tabbing to a terminal, especially on wasm where there is no terminal. Existing options were either stdout-only or tied to a specific framework, so I wrote one.

You get a scrollable event list with level filtering, target filtering (glob patterns), and search. It also bridges the log crate so crates that haven't migrated to tracing still show up.

Web demo: https://grievouz.github.io/egui_tracing/
Repo: https://github.com/grievouz/egui_tracing

I'd really like feedback on:

  • the filter UX (especially the target glob menu — it's the part I've iterated on most and am still not sure about)
  • performance at high event volume — it caches filtered results but I haven't stress-tested past a few thousand events/sec
  • anything that feels un-idiomatic; this is the first egui widget crate I've published

Unlicense, so do whatever you want with it.