To get the logcat from an Android device, I use adb shell logcat (also with some grep filtering in the mix).
An example output is as follows:
E/com.samsung.app( 3739): [MSC]>>>...
I/InputDispatcher( 2882): Delivering ...
D/ProgramMonitor( 3770): START ...
D/ProgramMonitor( 3770): LAUNCHER_RESUME...
I/Debug ( 3815): onReceive...
E/Debug ( 3815): receive ...
D/ClientReporter( 3036): ...
My question is, how can I change the color of output, based on the initial letter of the log. So that “E” is printed in red, “D” in green and so on… Just similar to how the log is seen in Eclipse.
Thank you
I use a python script I found here :
Modifying the Android logcat stream for full-color debugging
It’s really easy to use and to modify if you want.
Complete source code :