0

I'm using

adb -s [deviceId] logcat

to print the device's log output into cmd. But now I want to add a TAG filter to the shown output. How can I do that?

user2224350
  • 2,262
  • 5
  • 28
  • 54

2 Answers2

1

Use the -s option.

          adb logcat -s MyActivity 

Drawing from the link @ How to filter Android logcat by application?

For list of options check the link below

http://developer.android.com/tools/help/logcat.html

For tagging check the below link

http://developer.android.com/reference/android/util/Log.html

Community
  • 1
  • 1
Raghunandan
  • 132,755
  • 26
  • 225
  • 256
  • yes I found sth similiar, but I dont know how to combine both commands? 'adb -s [deviceId] logcat' and ' adb logcat -s MyActivity' – user2224350 May 12 '13 at 18:45
0

Try this:

adb logcat | findstr MyActivity

findstr is 'grep' in Windows. filter anything you want than.

Swing
  • 858
  • 1
  • 8
  • 21