过滤logcat的日志在命令行 [英] Filtering Logcat Logs on commandline

查看:207
本文介绍了过滤logcat的日志在命令行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

public static final TAG = "Legendry Eagle";

问题:我想看到的闻名遐迩鹰从命令行

我想:

 adb logcat -s "Legendry Eagle" 
 adb logcat -s <Legendry Eagle>

但仍是不工作。

But Still it is not working.

推荐答案

如果您只想显示logcat的一个特定的标签,像这样做:

If you only want to show logcat for a specific TAG, do it like this:

adb logcat YourTAGHere:Priority *:S

*:•是很重要的,因为它会将所有的标签为静音。如果我想只跟踪我的 MainActivity 在详细级别标记,语法是这样的。

The *:S is important, as it sets all other tags to silent. If I want to track only my MainActivity tag at Verbose level, the syntax would look like this.

adb logcat MainActivity:V *:S

编辑: 我发现过滤掉标签与空间没有什么好办法。 LegendryEagle 工作正常,但我没能过滤掉闻名遐迩的鹰

I found no good way of filtering out tags with spaces. LegendryEagle works fine, but I was not able to filter out Legendry Eagle

这篇关于过滤logcat的日志在命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆