I observed that when i use Logcat with Eclipse with ADT for Android, I get messages from many other applications as well. Is there a way to filter this and show only messages from my own application only.
Android – Filter LogCat to get only the messages from My Application in Android
androidandroid-studiologcat
Related Topic
- Android – How to close/hide the Android soft keyboard programmatically
- Android – Is quitting an application frowned upon
- Android – “Conversion to Dalvik format failed with error 1” on external JAR
- Android – way to get the source code from an APK file
- Android “Only the original thread that created a view hierarchy can touch its views.”
- Android – How to “select Android SDK” in Android Studio
- Android 8: Cleartext HTTP traffic not permitted
Best Answer
Linux and OS X
Use ps/grep/cut to grab the PID, then grep for logcat entries with that PID. Here's the command I use:
(You could improve the regex further to avoid the theoretical problem of unrelated log lines containing the same number, but it's never been an issue for me)
This also works when matching multiple processes.
Windows
On Windows you can do: