The main problem with them is, if we compared them with the LogCat perspective included in the SDK for eclipse, they don't have any color. While messages like warning or error have very colorful characters in eclipse and thus, easy to see, in the terminal every message seems like the same.
Searching in the Internet, I found several scripts to add new lines to the logcat command and then, make them more colorful.
Linux and Mac os
For all the unix systems, there is a script done by Jeff Sharkey which could be executed in the terminal. You can find it here:
You should download it and change the extension of the file by .py
After it, execute the command:
adb logcat | ./coloredlogcat.py
Adrian Vintu, inspired by Jeff Sharkey, has created a translator to execute the code of Jeff Sharkey and show it in the windows console.
You can find it here:
The steps to execute it are:
1. Download the file
2. Unzip the file. It contains:
- color_console.py: A python script done by Adrian Vintu
- coloredlogcat.py: The original python script done by Jeff Sharkey
- logcat.bat: a console executable file which do the translation
3. Copy it into the platform-tool folder of Android SDK. For example:
4. Running the program by write
in the console
Normally I code with my laptop, which only has 13" inch of screen. After using those scripts, the pid, tag and the colors uses at least 1/3 part of my screen, which make it not so useful. If you have larger screen, it could be fine. But for my case, I prefer to use some tricks like adding several symbols (------------) at the begging of the important messages, which could make me easily distinguish them.