WHOATEMYNOODLES
WHOATEMYNOODLES

Reputation: 2643

Android Studio Electric Eel's New Logcat - How do I get only the logs I manually logged?

In the old logcat all I would have to do is type my package name in the search bar.

e.g com.dave.mynewapp

but now when you type in the package name it constantly displays log messages EVERY SINGLE SECOND that I don't need making it hard to debug.

enter image description here

Also now, the cursor doesn't automatically scroll down when a new log appears making it even more frustrating

enter image description here

I am able to filter it by typing the activity name... e.g MainActivity, but it becomes very annoying to type out every single class name that I have logs in.

Is there a way to get all the logs I manually created, but ignore the clutter I have in the picture above?

Update October 2023:

Android Studio Giraffe | 2022.3.1 no longer spams the user with all these useless logs

Upvotes: 7

Views: 2110

Answers (2)

thompa
thompa

Reputation: 1

I had luck by filtering on: tag:info

var tag = "info"

Log.i(tag, "Names: $names")

Upvotes: 0

shuabing
shuabing

Reputation: 691

maybe you can try this :
filter specify the package name package:com.dave.mynewapp
filter specify the Tag tag:MainActivity
filter mutil tags like package:com.dave.mynewapp tag:MainActivity tag:MainActivity2
detail info about this link https://developer.android.com/studio/debug/logcat

Upvotes: 4

Related Questions