Mike Szczys · May 19, 2013 at 10:00 am

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!

Mike Szczys

szczys is an editor on XDA-Developers, the largest community for Android users. Mike Szczys is a professional musician but spends all his free time working with hobby electronics. As Contributing Editor for Hackaday.com he became interested in Android as some of the early hardware hacks started popping up on the Internet. What followed was a gradually rising addiction to all things Android. View szczys's posts and articles here.
Mario Tomás Serrafero · May 26, 2015 at 05:42 pm · 2 comments

Nexus & Cookies: A More Focused Direction?

It is that time of the year again, and we are approaching the day where Android fans all over the world gather to watch the livestream of Google’s I/O conference. Among the expected announcements lay wearables, Android Auto, hints at VR and  the Internet of Things and, of course, a new version of Android. An early glimpse of a supposed “Android M” was caught on the official website before being nuked out of existence, and thus the speculation began.  ...

XDA NEWS
Faiz Malkani · May 26, 2015 at 03:32 pm · 3 comments

LG G4 US Carrier Release Dates

The LG G4 was announced on April 29th with its Snapdragon 808 SoC, a welcomed change from its higher-end cousin, the overheating 810. Packing 3GB of RAM, 32GB of storage, a 3000mAh battery, and an impressive 16MP camera, the G4 is widely considered to be one of the best flagships of 2015. After almost a month of release speculation, the major US carriers have finally released some information regarding the device's availability, and here's what we know so far:  ...

XDA NEWS
Faiz Malkani · May 26, 2015 at 02:59 pm · 2 comments

Microsoft Reaches Pre-Install Agreement With New OEMs

As of late, Microsoft has been making a subtle but widespread play into the Android ecosystem, with small apps like Bing Torque being the foreshadowing of the larger ones to come, and as it stands, Skype and the three popular office apps - Powerpoint, Excel and Word - are thriving on the Play Store following their public release earlier this year, prior to which the Office suite remained in beta. Having its top apps on Android was just a stepping stone...

XDA NEWS
Share This