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
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.
© 2024 OneMinuteCode. All rights reserved.