Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gjtorikian/coloredlogcatplusplus
An extension of Jeff Sharkey's excellent ColoredLogcat terminal hack for Android development. Supports colors and filtering!
https://github.com/gjtorikian/coloredlogcatplusplus
Last synced: about 1 month ago
JSON representation
An extension of Jeff Sharkey's excellent ColoredLogcat terminal hack for Android development. Supports colors and filtering!
- Host: GitHub
- URL: https://github.com/gjtorikian/coloredlogcatplusplus
- Owner: gjtorikian
- Created: 2011-10-26T03:03:56.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-10-26T03:10:04.000Z (about 13 years ago)
- Last Synced: 2024-05-09T21:23:16.001Z (6 months ago)
- Language: Python
- Homepage:
- Size: 85 KB
- Stars: 17
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
ColoredLogcat++ is an extension of [Jeff Sharkey's excellent ColoredLogcat](http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/) terminal hack for Android development. So far, the only difference it contains is the ability to filter the log based on text. This text currently does _not_ support regular expressions, though if interest is there I can certainly implement it.
Eventually, I'd like to support [all the new logcat features available in the r14 Android SDK release](http://tools.android.com/recent/updatedlogcatviewer). Time permitting, naturally.
# Usage
This is an expansion on Jeff's original documentation. It also changes the format somewhat.
You must run ColoredLogcat++ by piping content directly using `adb`:
adb logcat | ~/coloredlogcatpp.py
While piping the text, you can pass the the `-f` switch to filter text from your log.
For example:
adb logcat | ~/coloredlogcatpp.py -f Nyan
Will only show log messages with the (case-sensitive) string of "Nyan" anywhere within them, be it the tag or the message itself.
You can string together as many `-f` filters as you like:
adb logcat | ~/coloredlogcatpp.py -f Nyan -f Meow -f Hiss -f urr
Some of the original logcat paramters remain. For example:
adb logcat *:I | ~/coloredlogcatpp.py -f arfield
Will show any "Info" messages (or higher) that contains the "arfield" string.
# Future
I hope to be able to implement more of the standard logcat parameters in upcoming iterations. Also, I'm pretty sure this only works on *nix machines, and haven't tried it on Cygwin.