是否有覆盖内置于默认实现中的日志消息?它只是在ListView中,当你滚动ListView时,会有这个烦人的日志不断被调用:
Time Tag Text
... ... ...
05-18 21:20:46.095: AbsListView(2752): unregisterIRListener() is called
05-18 21:20:46.185: AbsListView(2752): unregisterIRListener() is called
05-18 21:20:46.325: AbsListView(2752): unregisterIRListener() is called
05-18 21:20:46.405: AbsListView(2752): unregisterIRListener() is called
05-18 21:20:46.526: AbsListView(2752): unregisterIRListener() is called
05-18 21:20:46.606: AbsListView(2752): unregisterIRListener() is called
05-18 21:20:58.879: AbsListView(2752): unregisterIRListener() is called
05-18 21:20:58.989: IInputConnectionWrapper(2752): showStatusIcon on inactive InputConnection
05-18 21:20:59.209: AbsListView(2752): onDetachedFromWindow
05-18 21:20:59.209: FragmentPhotoGallery(2752): Background thread destroyed
我认为解决方案是找到它调用的方法并覆盖它,留下Log.d()调用。有没有人有这方面的经验?
答案 0 :(得分:1)
点击"eclipse logging configuration document"!
但AFAIK你可以完全关闭它,或者将过滤级别设置为信息,错误,调试,警告......
没有办法阻止一组特定的错误被记录,除非这是你自己的一个类,你可以删除其中的记录器代码。