All tests run on an 8-year-old MacBook Air.
Android Studio's logcat is fine. But opening a full IDE just to read logs and debug an error felt like overkill.
I built a lightweight logcat viewer in Rust + Tauri. Then I added a Gemini button next to every error line. One click β AI diagnosis, no copy-pasting, no context switching.
Here's how the AI integration works.
The idea: click the error, get the diagnosis
Every error line in the viewer has a small button. Click it, and the app:
Pulls that error line plus the surrounding 50β100 lines from a ring buffer
Strips any PII (IP addresses, emails) before sending
Sends the context to Gemini with a carefully crafted prompt
Displays the diagnosis in an overlay panel
No manual copy-pasting. No switching to a browser. The diagnosis appears where the error is.
The ring buffer design
Logcat streams thousands of lines per minute. You can't keep all of them in memory.
The Rust backend maintains a ring buffer of the last 2,000 lines.β¦