Filter output in logcat by tagname

后端 未结 5 1386
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 19:37

I\'m trying to filter logcat output from a real device (not an emulator) by tag name but I get all the messages which is quite a spam. I just want to read messages from brow

5条回答
  •  醉酒成梦
    2020-11-28 20:12

    Another option is setting the log levels for specific tags:

    adb logcat SensorService:S PowerManagerService:S NfcService:S power:I Sensors:E
    

    If you just want to set the log levels for some tags you can do it on a tag by tag basis.

提交回复
热议问题