# Only pay attention to log messages that match any of these filters # Each string is compiled as a regular expression. # Functions are called with the tag, priority, and message and # must return True to include the message in the log output. filters = [ r"My Custom Regex", lambda tag, priority, message: message == "Custom filter" ] )

## Examples

Run and colorify `adb logcat`

$ logcat-color

Colorify an old logcat text file you have laying around

$ logcat-color < /path/to/my.log

Pipe logcat-color to egrep for only the tags you care about

$ logcat-color -e | egrep '(Tag1|Tag2)'

Run logcat-color with a custom profile for filters, colors, and custom arguments (see [Profiles](#profiles))

$ logcat-color <profile-name>

logcat-color also supports most of the standard adb / logcat arguments, making it a suitable full-time replacement for `adb logcat`

Thanks to [Jeff Sharkey]http://jsharkey.org) for the original script that logcat-color is based on, [coloredlogcat.py]http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/)