Kostas Kostas - 2 months ago 18
Android Question

How to run logcat on multiple devices?

How can I run logcat on multiple devices at the same time? "adb logcat" command gives an error:

error: more than one device and emulator

Answer

Use the -s option of adb:

adb -s <serialnumber>

Example

C:\Users\lel>adb devices
List of devices attached
192.168.198.101:5555    device
0123456789ABCDEF        device

adb -s 0123456789ABCDEF logcat
adb -s 192.168.198.101:5555 logcat