Android的 - 使用logcat的命令行:应用信息和放大器;确切的优先级滤波 [英] android - using logcat in the command line : application info & exact priority filtering
问题描述
我有2个关于logcat的简短的问题:
1.in月食中,logcat中也表明,已经写入logcat的应用程序。
它是如何做到的呢?
我的意思是,什么是在Eclipse上用来获取什么显示有命令行参数?
2.currently,我成功实现优先权的过滤是X和上述(其中X为优先级)。
是有可能看到只有那些优先级的D还没有更高优先级的消息(如W或E)的消息?
如果是这样,怎么样?是有可能实现的每包,这样(例如)为特定的软件包,我将只监视是优先的D消息和另一特定包我将监测只有那些优先级电子商务?
- 亚行logcat
- 从文档:这里有一个过滤器的例子前pression的SUP presses除了那些标签ActivityManager,以优先级信息或以上的所有日志消息,并与标签MyApp的所有日志消息,并优先调试或以上:
亚行logcat ActivityManager:我的MyApp:D *:•
i have 2 short questions regarding the logcat:
1.in eclipse , the logcat also shows the application that has written to the logcat. how does it do it? i mean , what is the command line arguments used on eclipse to fetch what is shown there?
2.currently , the filtering i succeed to achieve of priority is of X and above (where X is the priority level) . is is possible to see only messages that are of priority D yet no higher priority messages (like W or E) ? if so, how? is it possible to achieve it per package, so that (for example) for a specific package i would monitor only messages that are of priority D and for another specific package i would monitor only messages that are of priority E ?
- adb logcat
- From the documentation: Here's an example of a filter expression that suppresses all log messages except those with the tag "ActivityManager", at priority "Info" or above, and all log messages with tag "MyApp", with priority "Debug" or above:
adb logcat ActivityManager:I MyApp:D *:S
这篇关于Android的 - 使用logcat的命令行:应用信息和放大器;确切的优先级滤波的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!