PID Cat

General

Category
Free
Tag
Logcat
License
N/A
Registered
Jul 13, 2014
Favorites
1
Link
https://github.com/JakeWharton/pidcat
See also
GhostLog
Leg
Lynx
CatLog
Logger

Additional

Language
Python
Version
2.1.0 (Sep 7, 2016)
Created
Jun 12, 2013
Updated
Mar 29, 2020
Owner
Jake Wharton (JakeWharton)
Contributors
Adam Stroud (adstro)
Robert Jacob (xperimental)
Lucio Maciel (luciofm)
Prateek Srivastava (f2prateek)
Jeroen Tietema (jtietema)
Anton Rieder (aried3r)
David Wu (wuman)
Hans-Christoph Steiner (eighthave)
Takahiro
Pedro Veloso (pedronveloso)
Dario Marcato (dmarcato)
Tomasz Rozbicki (tomrozb)
Eric Butler (codebutler)
Takahiro Menju (takahirom)
Jake Wharton (JakeWharton)
Sergey Ryabov (colriot)
Louis Boval (LouisBVL)
Adam Hupp (ahupp)
Show all (28)28
Activity
Badge
Generate
Download
Source code

Blurb

PID Cat

An update to Jeff Sharkey's excellent logcat color script which only shows log entries for processes from a specific application package.

During application development you often want to only display log messages coming from your app. Unfortunately, because the process ID changes every time you deploy to the phone it becomes a challenge to grep for the right thing.

This script solves that problem by filtering by application package. Supply the target package as the sole argument to the python script and enjoy a more convenient development process.

pidcat com.oprah.bees.android

Here is an example of the output when running for the Google Plus app:

Install

Get the script:

  • OS X: Use Homebrew.

     brew install pidcat
    

    If you need to install the latest development version

    brew unlink pidcat  
    brew install --HEAD pidcat
    
  • Arch Linux : Install the package called pidcat-git from the AUR.

  • Others: Download the pidcat.py and place it on your PATH.

Make sure that adb from the Android SDK is on your PATH. This script will not work unless this is that case. That means, when you type adb and press enter into your terminal something actually happens.

To include adb and other android tools on your path:

export PATH=$PATH:<path to Android SDK>/platform-tools
export PATH=$PATH:<path to Android SDK>/tools

Include these lines in your .bashrc or .zshrc.

Note: <path to Android SDK> should be absolute and not relative.