最近我的lolcat开始发送很多垃圾邮件。我认为这是因为我的代码中存在一些错误,但今天我创建了一个新项目并运行,并且logcat再次开始发送垃圾邮件。我的应用程序运行没有问题,但所有这些垃圾邮件都很烦人,因为我看不到自己的日志(
Log.d("TAG", "Hi")
;例如)。希望有人能帮助我。
我的logcat输出有一个运行空app的例子:
04-08 00:36:15.460 19215-19228/? D/DtMediaProvider﹕ Items in Video cursor: #39 | position: #-1
04-08 00:36:15.465 19215-19228/? D/DtMediaProvider﹕ Existing locations #39
04-08 00:36:15.469 19215-19228/? D/DtMediaProvider﹕ Fill mediaValues took: 0 ms
04-08 00:36:15.471 19215-19228/? D/DtMediaProvider﹕ Fill video took: 31 ms for content://media/external/video/media
04-08 00:36:15.501 20043-22809/? D/dalvikvm﹕ GC_EXPLICIT freed 516K, 46% free 9415K/17252K, paused 1ms+6ms, total 28ms
04-08 00:36:15.519 1017-1171/? I/ActivityManager﹕ Start proc com.android.providers.calendar for content provider com.android.providers.calendar/.CalendarProvider2: pid=29499 uid=10011 gids={50011, 3003, 1028, 1015}
04-08 00:36:15.525 1017-1703/? I/ActivityManager﹕ Process com.motorola.context (pid 29470) has died.
04-08 00:36:15.591 29499-29499/? I/CalendarProvider2﹕ Created com.android.providers.calendar.CalendarAlarmManager@42295e38(com.android.providers.calendar.CalendarProvider2@4228d9f0)
04-08 00:36:15.685 29483-29512/? I/ActivityModePolicy﹕ Transition mode: meeting from: 2 to: 2 token:
04-08 00:36:15.688 29483-29512/? W/AbstractModePolicy﹕ Cannot update state for: meeting, from: 2, to: 2
04-08 00:36:15.692 29483-29512/? I/ActivityModePolicy﹕ Active mode set to: ModeModel[id=3, key=sleep, category=activity, priority=1, version=1, status=5, token=sleep_1428465600000, startTime=1428465600163]
04-08 00:36:15.779 1017-2965/? I/ActivityManager﹕ Process com.motorola.contextual.smartrules2 (pid 29483) has died.
04-08 00:36:15.782 1017-1066/? D/WifiStateMachine﹕ handleMessage: E msg.what=131155
04-08 00:36:15.782 1017-1066/? D/WifiStateMachine﹕ processMsg: ConnectedState
04-08 00:36:15.782 1017-1066/? D/WifiStateMachine﹕ processMsg: L2ConnectedState
04-08 00:36:15.796 1017-1066/? D/WifiStateMachine﹕ handleMessage: X
04-08 00:36:15.797 1094-1094/? I/SBar.NetworkController﹕ onReceive: WifiManager.RSSI_CHANGED_ACTION Received
04-08 00:36:15.804 19215-19228/? D/DtMediaProvider﹕ Items in Audio cursor: #642 | position: #-1
04-08 00:36:15.810 1094-1094/? I/SBar.NetworkController﹕ refreshSignalCluster: wifi: mWifiConnected=true Wifi=zz_moto_stat_sys_wifi_signal_2_fully_wide Activity=(none) in=false out=false Accessibility="Dos barras de Wi-Fi"
04-08 00:36:15.818 19215-19228/? D/DtMediaProvider﹕ Existing locations #643
04-08 00:36:15.915 19215-19228/? D/DtMediaProvider﹕ Fill mediaValues took: 0 ms
04-08 00:36:15.917 19215-19228/? D/DtMediaProvider﹕ Fill audio took: 446 ms for content://media/external/audio/media
04-08 00:36:15.975 19215-19228/? D/DtMediaProvider﹕ Items in Image cursor: #785 | position: #-1
04-08 00:36:15.993 19215-19228/? D/DtMediaProvider﹕ Existing locations #785
04-08 00:36:16.138 19215-19228/? D/DtMediaProvider﹕ Fill mediaValues took: 0 ms
04
编辑04-08-15:
我不知道我的Android Studio发生了什么。我试图删除一些配置文件,甚至重新安装Android Studio,但没有任何作用。我只是应用像biddestroyer建议和工作类似的过滤器。垃圾邮件减少了,但仍然存在。不管怎样,谢谢。
答案 0 :(得分:4)
如果您使用的是IntelliJ / Android Studio,则可以按包添加自定义日志过滤器,例如:
答案 1 :(得分:0)
如果是Eclipse,您可以应用过滤器来查看与您的应用程序相关的日志。您可以通过单击日志猫屏幕左上角的加号图标来完成此操作。