Search code examples
androidadblogcatpidandroid-logcat

Filter application specific logs in adb logcat. (log tag, log message, pid, package name)


I'm taking logcat using this command:

C:\abs\adb logcat >> "Testdata".txt

This is collecting all logs happening on device.

But I want to take only "Application specific" logs, can anyone please help me with that?

I know we can create filter in DDMS but, those filter value will erase after some time, and I want to take it using adb.


Solution

  • Try this: adb logcat -s "YOURTAG" >> "Testdata".txt