adbcat

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2025 License: BSD-2-Clause Imports: 1 Imported by: 0

README

ADB Cat

Makes adb logcat colored and adds the feature of being able to filter by app or keywords.

adbcat

Get last release

Check how to get last release by your Operational Systems procedures here INSTALL.md

Utilization

        @                        @
         @.                     @
          @@     *@@@@@@#.    %@
           @@@@@@@@@@@@@@@@@@@@
        @@@@@@@@@@@@@@@@@@@@@@@@@@
      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@#  @@@@@@@@@@@@@@@@  -@@@@@@
   @@@@@@@    @@@@@@@@@@@@@@.   @@@@@@@
  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 :@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Usage:
  adbcat logcat [flags]

Examples:

- adbcat logcat
- adbcat logcat -o logcat.txt
- adbcat logcat -p com.android.chrome
- adbcat logcat --show-time --show-pid



Flags:
      --adb-path string    Path to the ADB binary
  -c, --clear              Clear the log before running
  -d, --device             Use the first device (adb -d)
  -e, --emulator           use the first emulator (adb -e)
      --exclude strings    Exclude all messages with specified strings. You can specify multiple values by comma-separated terms or by repeating the flag. Use @filename to load from text file.
  -h, --help               help for logcat
      --include strings    Include only messages with specified strings. You can specify multiple values by comma-separated terms or by repeating the flag. Use @filename to load from text file.
  -o, --log-file string    Write logcat output to file.
  -l, --min-level string   Minimum log level to be displayed (V,D,I,W,E,F) (default 'V'). (default "V")
  -p, --package string     Application package name.
  -s, --serial string      Sevice serial number (adb -s)
      --show-pid           Displey PID/TID
      --show-time          Display time

Global Flags:
  -D, --debug-log   Enable debug logging
  -q, --quiet       Silence (almost all) logging

Info

This is a Golang port~ of github.com/JakeWharton/pidcat.

How does this work?

Run adb logcat and parse his output. If --package is provided, adb shell ps is used to get the PIDs of the wanted packages and filter by lines/entries have a PID assigned to them.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg
adb
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL