How do I filter Android logcats in an application?

Asked 2 years ago, Updated 2 years ago, 73 views

I want to filter and print logcats from the application, what should I do? Because when the device is connected, I can't check the results I want because of the spam from other processes.

android logcat

2022-09-21 14:55

1 Answers

When you print out the log, you can put your own tag and print it out.

Log.d("AlexeysActivity","what you want to log"); Like this, Alexey Acity is the tag in the front. If you only want to read the corresponding log

If you type adlogcat -s AlexeesActivity, only the corresponding tag will be printed.


2022-09-21 14:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.