Issue
Is it possible to also display the Log's Package Name in each line?
Using
logcat -v long
leaves exactly the package name field (after PID) empty.
I want to filter the Logs from a specific application with different Tags, just wondering if it is possible.
Solution
logcat
record does not have a "package name field". Therefore there is no standard/built-in way to filter by it.
Although since Android 7.0 you can use logcat --pid
option combined with pidof -s
command to filter output by binary/package name:
adb shell "logcat --pid=$(pidof -s <package_name>)"
Replace "
with '
for Linux/MacOS
Answered By - Alex P.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.