How do I do BLEGUI Log Parsing and Filtering?
Install/build from source (use Visual Studio Community 2015 for free)
Open BLEGUI Log Parser
Select a refresh-time (how often the logs get updated)
Decide what you want to filter on
Click ‘Start Logging’
How does it work?
I’ll be the first to admit, the approach for this program (which I wrote to help me debug firmware specifically for one client), is incredibly bush league.
It is a C# app (as BLEGUI is Windows only) that simply digs into the Windows ‘window’ hierarchy by looking for the BLEGUI program name, finds the appropriate window which houses the log data, and ‘clicks’ the ‘Copy to Clipboard’ button. This puts all of the log data onto the clipboard. It then pastes everything from that copy into the Log Parser’s window (and applies some filtering).
The obvious problem here is that, while you’re working, you’ll have a hard time copying and pasting (unless you do it between refresh cycles or when the logging is stopped). There is also probably an issue when your BLEGUI log gets too big, the copy/paste/filter might be slow but I haven’t run into that yet.
A secondary problem is that I just pull what’s in the BLEGUI log itself, meaning if you clear the log, you clear the log parser… That shouldn’t be a surprise, as it’s only intended as a run-time log parser, not a historical tool as well.
Read more here: sureshjoshi.com/development/blegui-log-parsing-and-filtering/