此命令用于在Ubuntu命令行中获取指定包名(应用)的所有log信息:
adb logcat --pid=$(adb shell pidof -s pkg_name)
把pkg_name换成需要过滤的应用包名即可,特此记录。
StackOverFlow