Issue
So Android Studio has a very useful Android Monitor that shows logs specific to my application and everything going on with it; I've tried a few hours to get a logcat from the adb command line that is similar but I'm not getting even close. Specifically I just want the logs from my application, Info level or better. Thank you for whatever help you can provide.
In other words: what parameters can I add to adb logcat
in order to see logs similar to what you would see inside the Android Studio, Android Monitor view.
Solution
Try this:
adb shell "logcat | grep filter"
"filter" could be "you app pid)", or "the TAG".
Like this:
adb shell "logcat | grep 12345)"
adb shell "logcat | grep com.xxx.yyy"
If using Windows,you can do this:
adb logcat | findstr filter
Answered By - Swing
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.