android-studio - Android Studio Logcat 过滤精确标签

标签 android-studio filter logcat android-logcat

是否可以在 Android Studio Logcat 中过滤精确的标签?我正在寻找标签“lights”,但每个包含“lights”的标签(如“lightService”)也会被打印。

最佳答案

在右侧的 logcat 中的“编辑过滤器配置”中,可以创建新过滤器。标记字段作为正则表达式处理。因此,如果我输入“lights”,则会找到包含“lights”(如“lightService”)的所有内容。正确的正则表达式是“^lights$”,仅查找“lights”。

关于android-studio - Android Studio Logcat 过滤精确标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31710903/

相关文章:

android - 错误 :(2, 0) 未找到 ID 为 'android-test' 的插件

java - ADK vs JDK vs SDK 区别?

php - Woocommerce 简短描述摘录长度

Android studio logcat json pretty-print 修剪空格

android - SDCard 上的 Logcat 输出

android - 真实设备产生过多日志

android - 找不到 com.android.tools.build :gradle:4. 1.2

android - 解决错误 : cannot access Publisher in Android Studio?

swift - 如何按日期 Swift NSPredicates 过滤 Realm 列表

python - 将语言过滤器应用于 Entrez.esearch 和 Entrez.efetch