I just want to see the Logcat message from my app on Android, is there any way?

Asked 2 years ago, Updated 2 years ago, 86 views

I'm developing an Android app with Eclipse. If you run the app on the device, too many messages are printed on Logcat. Is there any way to filter out the messages from my app?

android android-logcat

2022-09-22 10:53

1 Answers

You can attach a tag to the Log method. And you can check it by filtering it with that tag.

Log.<Log Level>("<Applicable Package Name>", "message"); This is how you call the Log method.

Command to adb adb-d logcat <Applicable package name>:<Log level> *:S where -d stands for device. If it's an emulator, you can say -e. And if there's more than one emulator, You can say -samulator-<emulator number>.

If you type it like that, it will look filtered by the package name.


2022-09-22 10:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.