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/platform-tools path like c:\android-sdk-windows\platform-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

EDIT: The version required for ActivePython is 2.6 not the newest one.


Related posts

Comments

11/12/2009 5:10:12 AM

biAji

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

biAji

12/2/2009 12:08:49 PM

pingback

Pingback from androidforums.com

enhance your logcat experience with Colored Logcat - Android Forums

androidforums.com

12/15/2009 9: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/16/2010 6:32:53 PM

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

5/18/2011 11:55:31 AM

pingback

Pingback from arifandhika.wordpress.com

Perbandingan Iphone Android Blackberry dan windows « Arif's Blog

arifandhika.wordpress.com

Comments are closed

About Adrian Vintu

Adrian Vintu

Adrian Vintu is an old timer who has had the wonderful experience of working in a variety of quality environments and with various quality people.

Throughout time he has got down with Assembler, C++, Borland Delphi, Java, C#, Android etc. He took part in projects concerning software security, industrial controllers, food and health-care ERPS, AI simulations, data mining, mobile development, computer games, augmented reality, online distributed transactions, and financial management and trading.

In his spare time he develops free educational applications that run on Android and Windows Phone. It is his way of thanking and giving back to the open source and free (as in beer) software community and a way of bringing value to the social community and young generation.

Send mail

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008 - 2014

Sign in