Skip to content

Support --pid option #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions logcat-color
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ class LogcatColor(object):
# See http://developer.android.com/guide/developing/tools/logcat.html
# We can't support -d / -s since we use them for ADB above, but we
# provide long-form options in case they are needed
parser.add_option("-p", "--pid", dest="pid",
help="only print specific process log")
parser.add_option("-b", "--buffer", action="append", dest="buffers",
help="loads an alternate log buffer for viewing, such as event or" +
" radio")
Expand Down Expand Up @@ -151,6 +153,9 @@ class LogcatColor(object):
for buf in options.buffers:
self.logcat_args.extend(["-b", buf])

if options.pid:
self.logcat_args.extend(["--pid", options.pid])

if options.file:
self.logcat_args.extend(["-f", options.file])

Expand Down