在Android Studip中为Logcat创建过滤器日志

时间:2017-01-11 09:52:59

标签: android android-studio adb logcat android-logcat

我的Android应用程序中有类似下面的日志

01-11 13:31:49.382 4060-4345/? D/VibratorService: Turning vibrator off - ImmVibe.
01-11 13:31:49.377 4060-4359/? I/InputDispatcher: Delivering touch to (12286): action: 0x0, toolType: 1
01-11 13:31:49.382 4060-4345/? V/VibratorService: vibrateMagnitude - package: com.example.moblecontrollerdemo, ms: 40, token: android.os.BinderProxy@26ff4724, magnitude: 4000
01-11 13:31:49.377 12286-12286/? D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN
01-11 13:31:49.382 12286-12286/? V/Vibrator: Called vibrate(long) API!
01-11 13:31:49.382 12286-12286/? V/Vibrator: vibrate(long, AudioAttributes) API - PUID: 10477, PackageName: com.example.moblecontrollerdemo, ms: 40, AudioAttr: null
01-11 13:31:49.382 12286-12286/? V/Vibrator: Called vibrate(int, String, long, AudioAttributes) API - PUID: 10477, PackageName: com.example.moblecontrollerdemo
01-11 13:31:49.382 12286-12286/? V/Vibrator: vibrate - PUID: 10477, PackageName: com.example.moblecontrollerdemo, ms: 40, AudioAttr: null, mag: -1

如何创建仅包含D /和V /日志的日志过滤器。如果可能的话,还可以添加D / abcTag和V / xyzTag。

2 个答案:

答案 0 :(得分:0)

您可以从此处添加和管理过滤器:

from here

答案 1 :(得分:0)

@Raulp,你试过这个吗??

enter image description here