如何过滤的logcat在终端的消息没有标记? [英] How do I filter logcat messages in the terminal without a tag?
本文介绍了如何过滤的logcat在终端的消息没有标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Android的工作室的logcat的是不可用的;它会进出,很少显示在重新启动的消息,所以我用我的终端上亚行logcat启动。阅读 http://developer.android.com/tools/debugging/debugging-log。 HTML 给人以标签过滤的例子。如果我不知道的标记,但要显示所有的错误与错误子我知道吗?
Android Studio's logcat is unusable; it goes in and out and rarely shows messages on restart, so I've started using adb logcat on my terminal. Reading http://developer.android.com/tools/debugging/debugging-log.html gives examples of filtering with a tag. What if I don't know the tag, but want to show all error with an error substring I know?
推荐答案
您可以随时简单地管的logcat到grep:
You can always simply pipe the logcat to grep:
$ adb logcat | grep 'known error substring'
如果您使用的是Windows,然后用找到
而不是:
If you are on Windows, then use find
instead:
C:\> adb logcat | find 'known error substring'
这篇关于如何过滤的logcat在终端的消息没有标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文