Colored Logcat Script for Windows

by adrian vintu 11/2/2009 12:08:00 PM

I found a nice script from Jeff Sharkey that formats nicely and in color the adb logcat.
Unfortunately Jeffs script works only on *ix so I decided to make a port to Windows.

Here is a screenshot of the adb logcat without color

And here a screenshot of the the adb logcat with color

As you can see, the colored adb logcat is a huge improvement.

To easily use the code, copy the files color_console.py, coloredlogcat.py and logcat.bat to your Android SDK/Tools path like c:\android-sdk-windows-1.5_r3\tools\logcat.bat. Now, instead of running "adb logcat" just run "logcat".

Please be gentile with the code as I am not a Python programmer :)

You can download the files here colored_logcat.zip (3 kb)

Thanks go to
Jeff Sharkey
André Burgaud
ActiveState for ActivePython

Related posts

Comments

11/8/2009 9:10:12 PM

biAji

Nice work!! Although I don't develop in windows, I still like your job.

biAji

11/29/2009 4:08:49 AM

pingback

Pingback from androidforums.com

enhance your logcat experience with Colored Logcat - Android Forums

androidforums.com

12/12/2009 1:01:47 PM

Ryan Beesley

Hmmm, I'm having problems getting this to work. It just sort of hangs after I run it. No messages, no warnings, no errors. I installed Python 2.6.4 if you think that might have anything to do with it. It clearly isn't 3.0 code since there are several print "" statements.

Ryan Beesley

1/13/2010 10:32:53 AM

adrian vintu

Ryan later reported:
"I think that the logcat output was a slightly different format. Ultimately, I output to a file, and used a version of tail made for Windows by baremetal called baretail. From that I had the ability to write filters that would highlight rows based on the error level. It didn't have all the befits of the python script, but it had 0 dev time."

The link is this http://www.baremetalsoft.com/baretail/

adrian vintu

Comments are closed