Coloring Your Logcat World
Getting feedback for your app during development is as simple as adding logging info where necessary and looking for the output in logcat. But if there’s a lot going on, the task of actually finding the lines can get a little sticky. Logcat does have a rudimentary filtering feature, which was covered in a recent ADB Commands article. But I often find that when I’m using broad (app-wide) filtering, I still spend considerable time scrolling through the output. There’s a tool that can make this a little less tedious by color coding logcat output.
The work is all done with a Python package that parses the logcat output, applying labels and columns as it goes. It monitors the output in real time, but you can also feed it capture files after the fact. You can easily tweak it to do whatever you want using the filter and profile features that Marshall Culpepper included in the project. I’d say you probably won’t have to go beyond user-level options to get it looking the way you wish.
This is obviously targeted at Linux users based on the example commands used in the documentation (egrep, etc). I don’t have a Windows box to test, but logcat and Python are both cross-platform tools, so there’s a chance it would work. Make sure to leave a comment if you are able to give it a whirl.
I found out about this package from a comment in a Reddit thread about a different color coding script.
Want something on the XDA Portal? Send us a tip!