Android Debug工具链

2018-05-15  本文已影响12人  龙在阿里

Log日志

pidcat

logcat增强工具,可以按照app包名就行筛选。

  1. 安装。执行下列命令进行安装:

    brew install pidcat
    
    
  2. 筛选优酷app的log。

    pidcat com.youku.phone
    
    
  3. 详细用法。

    usage: pidcat [-h] [-w N] [-l {V,D,I,W,E,F,v,d,i,w,e,f}] [--color-gc]
               [--always-display-tags] [--current] [-s DEVICE_SERIAL] [-d] [-e]
               [-c] [-t TAG] [-i IGNORED_TAG] [-v] [-a]
               [package [package ...]]
    
     Filter logcat by package name
     positional arguments:
     package               Application package name(s)
    
     optional arguments:
     -h, --help            show this help message and exit
     -w N, --tag-width N   Width of log tag
     -l {V,D,I,W,E,F,v,d,i,w,e,f}, --min-level {V,D,I,W,E,F,v,d,i,w,e,f}
                             Minimum level to be displayed
     --color-gc            Color garbage collection
     --always-display-tags
                             Always display the tag name
     --current             Filter logcat by current running app
     -s DEVICE_SERIAL, --serial DEVICE_SERIAL
                         Device serial number (adb -s option)
     -d, --device          Use first device for log input (adb -d option)
     -e, --emulator        Use first emulator for log input (adb -e option)
     -c, --clear           Clear the entire log before running
     -t TAG, --tag TAG     Filter output by specified tag(s)
     -i IGNORED_TAG, --ignore-tag IGNORED_TAG
                             Filter output by ignoring specified tag(s)
     -v, --version         Print the version number and exit
     -a, --all             Print all log messages
    
上一篇 下一篇

猜你喜欢

热点阅读