Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 634
Nan Avatar asked Oct 04 '22 15:10

Nan


1 Answers

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

like image 133
Guillem Avatar answered Oct 10 '22 06:10

Guillem