The android logcat is logging way too much useless crap. I can't even see what I am logging from my code and therefore it get's so much harder to debug my application. I don't want the logcat to log things about my device. So how do I make it only log things from my code (Log.d(string, string))?
Asked
Active
Viewed 2,063 times
1
-
1You can filter your logcat as described here: http://stackoverflow.com/questions/19931987/how-to-filter-logcat-in-android-studio – Mario R.C. Oct 08 '15 at 15:53
-
filter by adding package name – Boopathi Oct 08 '15 at 15:54
-
If the spam is from system calls in your own app (e.g., the "NativeCrypto" garbage logging that plagued 4.x devices), you can [exclude specific tags from logcat](http://stackoverflow.com/a/14609392/1953590). – Kevin Krumwiede Oct 08 '15 at 17:06
-
Related posts - [Filter LogCat to get only the messages from My Application in Android?](https://stackoverflow.com/q/6854127/465053) & [How to filter logcat in Android Studio?](https://stackoverflow.com/q/19931987/465053) – RBT Aug 28 '18 at 00:12
2 Answers
1
In Android studio as well as eclipse, there are are direct options in logcat to 1: Select your application package only to show logs related to your app only. 2: Select the desired Log level you want to see. Select 'Debug' if you want to view only 'Log.d' methods.

DGN
- 702
- 3
- 12
1
Try this:
one
Click here.
two
three
For example for Log.d("LogsAndroid", string)
Where "LogsAndroid"
it's a TAG
four
Later you can choose here on dropdown what do you want to show

Aspicas
- 4,498
- 4
- 30
- 53